UNPKG

ts-toolbelt

Version:

TypeScript's largest utility library

11 lines (10 loc) 269 B
import { List } from './List'; /** * Remove the first item out of a [[List]] * @param L * @returns [[List]] * @example * ```ts * ``` */ export declare type Tail<L extends List> = L extends readonly [] ? L : L extends readonly [any?, ...infer LTail] ? LTail : L;