Type Alias Merge<A, B>

Merge<A, B>: Or<IsNever<A>, IsNever<B>, never, Or<IsVoid<A>, IsVoid<B>, A & B, Or<IsUnknown<A>, Or<IsUndefined<A>, IsNull<A>>, B, Or<IsUnknown<B>, Or<IsUndefined<B>, IsNull<B>>, A, ObjectPlus.Merge<Box<A, {
    $notBoxable: {};
}>, Box<B, {
    $notBoxable: {};
}>>>>>>

⚗️ transform 🔢 customizable

Merges type A and type B.

This type performs the same operations as { ...a, ...b } but at the type level.

This is a more general type then ObjectPlus.Merge<A, B>, which constraints A and B to be Record.

This type does not have such restrictions, and tries to handle the other types accordingly.

Type Parameters

  • A
  • B