Skip to content

NTuple

Algorand TypeScript


Algorand TypeScript / index / NTuple

NTuple<T, N> = N extends N ? number extends N ? T[] : _TupleOf<T, N, readonly []> : never

Defined in: primitives.ts:364

Declare a homogeneous tuple with the item type T and length N.

Eg. NTuple<uint64, 3> === [uint64, uint64, uint64]

T

N extends number