Simplifies a type by merging intersected objects into a single object with all properties.
This utility is helpful when dealing with complex object intersections.
For example, { foo: string } & { bar: string } would be simplified to { foo: string; bar: string }.
Type Parameters
T
The type to simplify, typically an intersection of types.
Simplifies a type by merging intersected objects into a single object with all properties. This utility is helpful when dealing with complex object intersections. For example,
{ foo: string } & { bar: string }would be simplified to{ foo: string; bar: string }.