Accurately merge the fields of L with the ones of L1. It is equivalent to the spread operator in JavaScript. [[Union]]s and Optional fields will be handled gracefully.
L
L1
(⚠️ needs --strictNullChecks enabled)
--strictNullChecks
to complete
to copy from
(?='flat') 'deep' to do it deeply
'flat'
(?=BuiltIn) types not to merge
BuiltIn
(?=undefined) types of O to be replaced with ones of O1
undefined
O
O1
List
Accurately merge the fields of
L
with the ones ofL1
. It is equivalent to the spread operator in JavaScript. [[Union]]s and Optional fields will be handled gracefully.(⚠️ needs
--strictNullChecks
enabled)