Files
vibn-api/node_modules/ts-algebra/lib/utils/unionLast.d.ts
2026-05-17 12:43:53 -07:00

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;