UNPKG

rambda

Version:

Lightweight faster alternative to Ramda

14 lines (12 loc) 292 B
import {Concat} from './Concat' import {Tuple} from './Tuple' /** Add an element **`A`** at the end of **`T`** * @param T to append to * @param A to be added to * @returns **`any[]`** * @example * ```ts * ``` */ export type Append<T extends Tuple, A extends any> = Concat<T, [A]>