UNPKG

ts-essentials

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