Creates a readonly tuple type of a specific length N with elements of type Elm. Alias for MakeTuple<Elm, N>.
N
Elm
MakeTuple<Elm, N>
The desired length of the tuple (must be a non-negative integer literal).
The type of elements in the tuple.
A readonly tuple type readonly [Elm, Elm, ..., Elm] of length N.
readonly [Elm, Elm, ..., Elm]
type TupleOf3Strings = ArrayOfLength<3, string>; // readonly [string, string, string]type TupleOf0Numbers = ArrayOfLength<0, number>; // readonly [] Copy
type TupleOf3Strings = ArrayOfLength<3, string>; // readonly [string, string, string]type TupleOf0Numbers = ArrayOfLength<0, number>; // readonly []
Creates a readonly tuple type of a specific length
Nwith elements of typeElm. Alias forMakeTuple<Elm, N>.