ts-type-forge
    Preparing search index...

    Type Alias Tail<A>

    Tail: Tuple.Tail<A>

    Gets a new tuple/array type containing all elements of A except the first one. Delegates to Tuple.Tail.

    Type Parameters

    • A extends readonly unknown[]

      The readonly array or tuple type.

    A new type with the first element removed.

    type T1 = List.Tail<[1, 2, 3]>; // readonly [2, 3]
    type T2 = List.Tail<readonly string[]>; // readonly string[] (unchanged for general arrays)
    type T3 = List.Tail<[1]>; // readonly []
    type T4 = List.Tail<[]>; // readonly []