ts-type-forge
    Preparing search index...

    Type Alias Seq<N>

    Seq: SeqImpl<MakeTuple<unknown, N>>

    Creates a readonly tuple containing a sequence of number literals from 0 up to (but not including) N. Requires N to be a non-negative integer literal for which MakeTuple<unknown, N> can be computed.

    Type Parameters

    • N extends number

      The upper bound (exclusive) of the sequence. Must be a non-negative integer literal.

    A readonly tuple type readonly [0, 1, ..., N-1].

    type S3 = Seq<3>; // readonly [0, 1, 2]
    type S0 = Seq<0>; // readonly []
    type S1 = Seq<1>; // readonly [0]