UNPKG

285 BTypeScriptView Raw
1import { List } from './List';
2/**
3 * Remove the last element out of `L`
4 * @param L to remove from
5 * @returns [[List]]
6 * @example
7 * ```ts
8 * ```
9 */
10export declare type Pop<L extends List> = L extends (readonly [...infer LBody, any] | readonly [...infer LBody, any?]) ? LBody : L;