Converts a union type into an intersection type.
The union type to convert
type Result = UnionToIntersection< | { a: string } | { b: number }>;// ^?// { a: string } & { b: number } Copy
type Result = UnionToIntersection< | { a: string } | { b: number }>;// ^?// { a: string } & { b: number }
Converts a union type into an intersection type.