Type alias IsUnknown<T>

IsUnknown<T>: IsAny<T> extends true
    ? false
    : unknown extends T
        ? true
        : false

Check if type is unknown.

Type Parameters

  • T

Example

const isUnknown: IsUnknown<unknown> = true