Function isType

  • Is the subject of type T

    Type Parameters

    • T

    Parameters

    • subject: T

    Returns subject is T

  • Is the subject of type T, satisfying the supplied validator

    Type Parameters

    • T

    Parameters

    • subject: unknown
    • validator: ((s) => unknown)
        • (s): unknown
        • Parameters

          • s: T

          Returns unknown

    Returns subject is T

Generated using TypeDoc