mergeAll
mergeAll<
TSources>(sources,options?): { [KeyType in string | number | symbol]: UnionToIntersection<TSources[number]>[KeyType] }
Defined in: packages/core/src/object/merge.ts:81
Fold several sources into one value, each merged over the one before it.
Options are resolved once for the whole fold, where a chain of binary merge calls resolves them per step.
Type Parameters
Section titled “Type Parameters”TSources
Section titled “TSources”TSources extends readonly unknown[]
Parameters
Section titled “Parameters”sources
Section titled “sources”TSources
Values to merge, lowest priority first
options?
Section titled “options?”Merge options
Returns
Section titled “Returns”{ [KeyType in string | number | symbol]: UnionToIntersection<TSources[number]>[KeyType] }
A new value; no source is modified