Function assertRunTimeType

  • Asserts that the given input matches the given test type. Note that an name for the input must be provided for error messaging purposes.

    Type Parameters

    Parameters

    • input: unknown
    • testType: T
    • OptionalfailureMessage: string

    Returns asserts input is RunTimeTypeMapping[T]