Detect unknown (true when T is unknown but not any)
unknown
type A = IsUnknown<unknown>; // truetype B = IsUnknown<any>; // falsetype C = IsUnknown<string>; // false Copy
type A = IsUnknown<unknown>; // truetype B = IsUnknown<any>; // falsetype C = IsUnknown<string>; // false
Detect
unknown(true when T is unknown but not any)