Type guard: detect whether a type is a tuple.
Type to check
Distinguishes tuples from arrays by inspecting the length property.
type A = IsTuple< [ string, number ] >; // truetype B = IsTuple< number[] >; // false Copy
type A = IsTuple< [ string, number ] >; // truetype B = IsTuple< number[] >; // false
Type guard: detect whether a type is a tuple.