UNPKG

269 BTypeScriptView Raw
1import { List } from './List';
2/**
3 * Remove the first item out of a [[List]]
4 * @param L
5 * @returns [[List]]
6 * @example
7 * ```ts
8 * ```
9 */
10export declare type Tail<L extends List> = L extends readonly [] ? L : L extends readonly [any?, ...infer LTail] ? LTail : L;