TOC Toolkit API - v0.1.0
    Preparing search index...

    Variable assertConst

    assert: (isCondition: boolean, message: string) => asserts isCondition = ...

    Checks a condition that the surrounding code guarantees. A failure is a bug, so the function throws. The message states the guarantee in one sentence, such as "A heap child has a parent."

    Type Declaration

      • (isCondition: boolean, message: string): asserts isCondition
      • Parameters

        • isCondition: boolean
        • message: string

        Returns asserts isCondition