IsNever<T>: [T] extends [never]
    ? true
    : false

Type Parameters

  • T

    Type to check

Description

Checks if T is never

Example

type Result = IsNever<never>
// ^? type Result = true

Generated using TypeDoc