Skip to content

MergedSources

MergedSources<TSources> = Simplify<UnionToIntersection<TSources[number]>>

Defined in: packages/core/src/object/merge-options.ts:32

What folding TSources yields.

An intersection, which is right while the sources’ keys are disjoint or agree on a type. Where they disagree the last source wins at runtime, so a caller in that position states the result type itself.

TSources extends readonly unknown[]