type Merge
Merges intersection of {...} & & ... & {...}
into a single { ... }
Signature:
export type Merge<U> = UnionToIntersection<U> extends infer O ? {
[K in keyof O]: O[K];
} : never;
References
- nionToIntersection](union-to-intersection)