UNPKG

typescript-miscellaneous

Version:
2 lines (1 loc) 162 B
export declare type UnionToIntersection<Union> = (Union extends any ? (_: Union) => any : never) extends ((_: infer Intersection) => any) ? Intersection : never;