Checks if a given type T is exactly unknown.
T
unknown
IsExactlyUnknown<any | unknown>; // false, since the union evaluates to any IsExactlyAny<any | unknown>; // true IsExactlyUnknown<unknown | string> // true IsExactlyUnknown<string>; // flase Copy
IsExactlyUnknown<any | unknown>; // false, since the union evaluates to any IsExactlyAny<any | unknown>; // true IsExactlyUnknown<unknown | string> // true IsExactlyUnknown<string>; // flase
Checks if a given type
T
is exactlyunknown
.