Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 584 Bytes

File metadata and controls

45 lines (33 loc) · 584 Bytes

typelab / aliases / Tuple

type Tuple<T> = [...T];

Type that represents a tuple, which is a fixed-length array of elements of type T.

Type Parameters

Type Parameter Default type Description

T extends List

Any[]

The type of the elements in the tuple, defaults to any[].

Example

// MyTuple is [number, string]
type MyTuple = Tuple<[number, string]>;