UNPKG

ts-essentials

Version:

All essential TypeScript types in one place

2 lines (1 loc) 166 B
export declare type UnionToIntersection<Union> = (Union extends any ? (arg: Union) => void : never) extends (arg: infer Intersection) => void ? Intersection : never;