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 typeB
.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 constraintsA
andB
to beRecord
.This type does not have such restrictions, and tries to handle the other types accordingly.