Gets the tail (all elements except the first) of a tuple type.
Unlike ArrayTail from type-fest, this preserves the tuple structure as a readonly tuple rather than converting to an array type.
The tuple type to get the tail of
type Example = TupleTail<readonly [string, number, boolean]>; // readonly [number, boolean]type Single = TupleTail<readonly [string]>; // readonly []type Empty = TupleTail<readonly []>; // readonly [] Copy
type Example = TupleTail<readonly [string, number, boolean]>; // readonly [number, boolean]type Single = TupleTail<readonly [string]>; // readonly []type Empty = TupleTail<readonly []>; // readonly []
Gets the tail (all elements except the first) of a tuple type.
Unlike ArrayTail from type-fest, this preserves the tuple structure as a readonly tuple rather than converting to an array type.