Builds a fixed-length tuple of N elements of type T via recursive conditional types.
N
T
Element type repeated in each slot.
Exact tuple length (must be a numeric literal type).
Internal accumulator used during recursion; callers should omit this.
type Triple = TupleOf<number, 3>;// ^? [number, number, number] Copy
type Triple = TupleOf<number, 3>;// ^? [number, number, number]
Builds a fixed-length tuple of
Nelements of typeTvia recursive conditional types.