devtypes - v1.1.0
    Preparing search index...

    Type Alias TupleAppend<T, V>

    TupleAppend: [...T, V]

    Append an element to the end of a tuple.

    Type Parameters

    • T extends readonly any[]

      Tuple type

    • V

      Element to append

    1.1.0

    Creates a new tuple type with the specified element added at the end.

    type Tup = [ number, string ];
    type Appended = TupleAppend< Tup, boolean >;
    // [ number, string, boolean ]