devtypes - v2.0.0
    Preparing search index...

    Type Alias TupleLength<T>

    TupleLength: T["length"]

    Get the length of a tuple.

    Type Parameters

    • T extends readonly any[]

      Tuple type

    Preserves literal length information for fixed tuples.

    type L = TupleLength< [ string, string, number ] >;  // 3