ts-type-forge
    Preparing search index...

    Type Alias Concat<A, B>

    Concat: ConcatImpl<A, B, readonly []>

    Concatenates two readonly tuples A and B.

    Type Parameters

    • A extends readonly unknown[]

      The first readonly tuple.

    • B extends readonly unknown[]

      The second readonly tuple.

    A new readonly tuple type representing the concatenation of A and B.

    type C1 = Tuple.Concat<[1, 2], [3, 4]>; // readonly [1, 2, 3, 4]
    type C2 = Tuple.Concat<[], [1]>; // readonly [1]
    type C3 = Tuple.Concat<[1], []>; // readonly [1]