Type Alias Assertion<R>

Assertion: (x: unknown) => asserts x is R

Produces a function that asserts that the given argument is of type R

Type Parameters

  • R

Type declaration

    • (x: unknown): asserts x is R
    • Parameters

      • x: unknown

      Returns asserts x is R