UnionToIntersection
The union to convert
Convert a union to an intersection
An intersection
type Union = { a: string } | { b: number };type Intersection = UnionToIntersection<Union>; // { a: string } & { b: number } Copy
type Union = { a: string } | { b: number };type Intersection = UnionToIntersection<Union>; // { a: string } & { b: number }
UnionToIntersection