Type alias IsExactlyUnknown<T>

IsExactlyUnknown<T>: Equals<T, unknown>

Checks if a given type T is exactly unknown.

Type Parameters

  • T

Example

 IsExactlyUnknown<any | unknown>; // false, since the union evaluates to any
IsExactlyAny<any | unknown>; // true
IsExactlyUnknown<unknown | string> // true
IsExactlyUnknown<string>; // flase