You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Intersects a type with an empty object. This is useful for simplifying/expanding a type or interface.
*
* @remarks
* In some cases, such as when `T` is particularly close to the depth limit, `Combine` may not be able to infer the type. In these cases, use `Simplify` instead.
* @see {@link Simplify | Simplify}
* @example
* ```ts
* Combine<{ a: 1 } & { b: 2 }> // { a: 1, b: 2 }
* ```
* ---
*/
export type Combine<T> = {} & { [K in keyof T]: T[K] }