Function isType

Properties

Methods

Properties

never: {
    <_S>(): unknown;
    (subject: never): subject is never;
}

Type declaration

    • <_S>(): unknown
    • Check is the type never

      Type Parameters

      • _S extends never

      Returns unknown

      use isType<T>() or testType.never<T>() instead

    • (subject): subject is never
    • Check is the value is type never

      Parameters

      • subject: never

      Returns subject is never

      use isType<T>() or testType.never<T>() instead

Methods

  • Are types A and B equals/not equals. Easier to use than isType.t<>() and isType.f<>(), when doing type level only equality comparison as you don't have to import Equal<>.

    Type Parameters

    • _C
    • A
    • B

    Returns void

    use testType.equal() instead