ts-type-forge
    Preparing search index...

    Type Alias MutableArrayOfLength<N, Elm>

    MutableArrayOfLength: Mutable<ArrayOfLength<N, Elm>>

    Creates a mutable tuple type of a specific length N with elements of type Elm.

    Type Parameters

    • N extends number

      The desired length of the tuple (must be a non-negative integer literal).

    • Elm

      The type of elements in the tuple.

    A mutable tuple type [Elm, Elm, ..., Elm] of length N.

    type MutableTupleOf2Booleans = MutableArrayOfLength<2, boolean>; // [boolean, boolean]