You are reading the docs for 0.9. The latest version is 0.10. Read this page for 0.10 →

Merge<A, B>

type
types.ts:2002

Merges 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

NameTypeDescription
A–
B–