Convert a union to an intersection
type U = { a: number } | { b: string };type I = UnionToIntersection<U>;// { a: number } & { b: string } Copy
type U = { a: number } | { b: string };type I = UnionToIntersection<U>;// { a: number } & { b: string }
Convert a union to an intersection