ts-type-forge
    Preparing search index...

    Type Alias Concat<A, B>

    Concat: Tuple.Concat<A, B>

    Concatenates two readonly arrays or tuples A and B. Delegates to Tuple.Concat.

    Type Parameters

    • A extends readonly unknown[]

      The first readonly array or tuple.

    • B extends readonly unknown[]

      The second readonly array or tuple.

    A new type representing the concatenation of A and B.

    type C1 = List.Concat<[1, 2], [3, 4]>; // readonly [1, 2, 3, 4]
    type C2 = List.Concat<readonly number[], readonly string[]>; // readonly (string | number)[]
    type C3 = List.Concat<[1], readonly number[]>; // readonly [1, ...number[]]