devtypes - v2.0.0
    Preparing search index...

    Type Alias TupleTail<T>

    TupleTail: T extends readonly [any, ...(infer R)] ? R : []

    Get all but the first element of a tuple.

    Type Parameters

    • T extends readonly any[]

      Tuple type

    Extracts a new tuple type containing all elements except the first.

    type H = TupleTail< [ number, string, boolean ] >;
    // [ string, boolean ]