Converts a union type T into an intersection type.
T
The union type.
type Inter = UnionToIntersection<{ a: string } | { b: number }>; // { a: string } & { b: number } Copy
type Inter = UnionToIntersection<{ a: string } | { b: number }>; // { a: string } & { b: number }
Converts a union type
Tinto an intersection type.