Skip to content

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.

TSources extends readonly unknown[]

TSources

Values to merge, lowest priority first

MergeOptions

Merge options

{ [KeyType in string | number | symbol]: UnionToIntersection<TSources[number]>[KeyType] }

A new value; no source is modified