Type guard: detect any.
any
Type to test
Uses the 0 extends (1 & T) trick to reliably distinguish any from all other types, including unknown.
0 extends (1 & T)
unknown
type A = IsAny< any >; // truetype B = IsAny< string >; // false Copy
type A = IsAny< any >; // truetype B = IsAny< string >; // false
Type guard: detect
any.