Overwrite
Equivalent to using expression T & U
, but done without merging the types.
See
Example
type A = { a: string, b: boolean }
type B = { a: number, b: boolean }
// Regular merge
type Merged = A & B // { a: never, b: boolean }
// Using Overwrite
type Overwritten = Overwrite<A, B> // { a: number, b: boolean }