UNPKG

type-plus

Version:
3 lines 248 B
export type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; export declare function toIntersection<U>(union: U): UnionToIntersection<U>; //# sourceMappingURL=union_to_intersection.d.ts.map