tasq/node_modules/ts-algebra/lib/utils/unionLast.d.ts

3 lines
210 B
TypeScript

import type { IntersectUnion } from "./intersectUnion";
export declare type UnionLast<UNION> = IntersectUnion<UNION extends unknown ? (x: UNION) => void : never> extends (x: infer LAST) => void ? LAST : never;