Type alias Tuple<T>

Tuple<T>: T extends readonly unknown[]
    ? number extends T["length"]
        ? never
        : T
    : never

Represents a tuple.

Type Parameters

  • T

Example

````ts
Tuple<['a', 'b']>; // Result: ['a', 'b']
Tuple<string[]>; // Result: never