This utility type can be used in place of T[] where you want TS to infer things as tuples as opposed to array. Also note that T[] could be empty, wheres Tuple<T> will contain at least one T.
T[]
Tuple<T>
T
Generated using TypeDoc
This utility type can be used in place of
T[]
where you want TS to infer things as tuples as opposed to array. Also note thatT[]
could be empty, wheresTuple<T>
will contain at least oneT
.