BUPKIS
    Preparing search index...

    Type Alias TupleTail<T>

    TupleTail: T extends readonly [unknown, ...(infer Rest)] ? Rest : readonly []

    Gets the tail (all elements except the first) of a tuple type.

    Unlike ArrayTail from type-fest, this preserves the tuple structure as a readonly tuple rather than converting to an array type.

    Type Parameters

    • T extends readonly unknown[]

      The tuple type to get the tail of

    type Example = TupleTail<readonly [string, number, boolean]>; // readonly [number, boolean]
    type Single = TupleTail<readonly [string]>; // readonly []
    type Empty = TupleTail<readonly []>; // readonly []