Tail<T>: T extends [infer _, ...(infer R)]
    ? R
    : never

Extracts the type info for all but the first item inside a tuple.

Type Parameters

  • T extends unknown[]

Example

type Values = Tail<[true, 1, '2']>;
// => [1, "2"]

Generated using TypeDoc