UNPKG

ts-toolbelt

Version:

TypeScript's largest utility library

13 lines (12 loc) 284 B
import { Exclude } from './Exclude'; import { Last } from './Last'; /** * Remove an item out of `U` * (⚠️ it might not preserve order) * @param U to remove from * @returns [[Union]] * @example * ```ts * ``` */ export declare type Pop<U extends any> = Exclude<U, Last<U>>;