Merge<A, B>
typeMerges B into A, flattening the result. An empty B leaves A untouched, so a
decoration that adds no events costs nothing at the type level.
Definition
type
type Merge<A, B> = [keyof B] extends [never] ? A : Prettify<A & B>[keyof B] extends [never] ? A : Prettify<A & B>
Type parameters
| Name | Type | Description |
|---|---|---|
A | — | |
B | — |