UNPKG

ts-toolbelt

Version:

TypeScript's largest utility library

13 lines (12 loc) 273 B
import { Tail } from './Tail'; import { Length } from './Length'; import { List } from './List'; /** * Get the last entry of `L` * @param L to extract from * @returns [[Any]] * @example * ```ts * ``` */ export declare type Last<L extends List> = L[Length<Tail<L>>];