Creates a readonly tuple type whose length is at most N (i.e. 0 to N, both inclusive).
Counterpart of ArrayAtLeastLen, defined as ArrayBoundedLen<0, N, Elm>.
The result is a union readonly [] | readonly [Elm] | ... | MakeTuple<Elm, N>.
Requires N to be a non-negative integer literal.
Type Parameters
Nextendsnumber
The maximum length (inclusive). Must be a non-negative integer literal.
Elm
The type of elements in the tuple.
Returns
A union of readonly tuples whose lengths range from 0 to N.
Creates a readonly tuple type whose length is at most
N(i.e.0toN, both inclusive). Counterpart of ArrayAtLeastLen, defined asArrayBoundedLen<0, N, Elm>. The result is a unionreadonly [] | readonly [Elm] | ... | MakeTuple<Elm, N>. RequiresNto be a non-negative integer literal.