PopUnion
The union to remove the last item from
Remove the last item from a union
The union without the last item
type Union = { a: string } | { b: number };type Pop = PopUnion<Union>; // { b: number } Copy
type Union = { a: string } | { b: number };type Pop = PopUnion<Union>; // { b: number }
PopUnion