UNPKG

ts-toolbelt

Version:

TypeScript's largest utility library

15 lines (14 loc) 268 B
import { List } from './List'; /** * Add an element `A` at the beginning of `L` * @param L to append to * @param A to be added to * @returns [[List]] * @example * ```ts * ``` */ export declare type Prepend<L extends List, A extends any> = [ A, ...L ];