Merges an intersection of object types R into a single object type with combined properties. Useful for making intersected types more readable in tooltips.
R
An intersection of record types.
type Merged = MergeIntersection<{ a: string } & { b: number }>; // { a: string; b: number } Copy
type Merged = MergeIntersection<{ a: string } & { b: number }>; // { a: string; b: number }
Merges an intersection of object types
Rinto a single object type with combined properties. Useful for making intersected types more readable in tooltips.