• Asserts that value is value of assertion.

    Type Parameters

    • $Value

    Parameters

    • assertion: Assertion<$Value>

      Assertion to be checked.

    • value: unknown

      Value to be passed into assertion.

    Returns asserts value is $Value

    assert(number, value); // asserts value is number