UNPKG

ts-toolbelt

Version:

TypeScript's largest utility library

12 lines (11 loc) 259 B
import { Length } from './Length'; import { List } from './List'; /** * Get the first entry of `L` * @param L to extract from * @returns [[Any]] * @example * ```ts * ``` */ export declare type Head<L extends List> = Length<L> extends 0 ? never : L[0];