type UnionToIntersection
Transforms union type to intersection type
Signature:
export type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
UnionToIntersection
Transforms union type to intersection type
Signature:
export type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;