UNPKG

268 BTypeScriptView Raw
1import { List } from './List';
2/**
3 * Add an element `A` at the beginning of `L`
4 * @param L to append to
5 * @param A to be added to
6 * @returns [[List]]
7 * @example
8 * ```ts
9 * ```
10 */
11export declare type Prepend<L extends List, A extends any> = [
12 A,
13 ...L
14];