type IsTuple<T>
Determines whether the given type T is a tuple type.
Definition
type IsTuple<T> = T extends {
length: infer L;
} ? 0 extends L ? false : true : false;
type IsTuple<T>Determines whether the given type T is a tuple type.
type IsTuple<T> = T extends {
length: infer L;
} ? 0 extends L ? false : true : false;