devtypes - v2.0.0
    Preparing search index...

    Type Alias TupleConcat<A, B>

    TupleConcat: readonly [...A, ...B]

    Concatenate two tuples.

    Type Parameters

    • A extends readonly any[]

      First tuple

    • B extends readonly any[]

      Second tuple

    Creates a new tuple type by appending the elements of the second tuple to the end of the first tuple.

    type C = TupleConcat< [ 1, 2 ], [ 3, 4 ] >;  // [ 1, 2, 3, 4 ]