Skip to main content

Interface: DeepMergeOptions

Defined in: object/types.ts:72

Options for deep merging objects.

Properties

arrayStrategy?

readonly optional arrayStrategy: "concat" | "replace" | "merge"

Defined in: object/types.ts:79

Strategy for handling array conflicts.

  • 'replace': Replace the target array with source array (default)
  • 'concat': Concatenate source array to target array
  • 'merge': Merge arrays by index

customMerge()?

readonly optional customMerge: (key, target, source) => unknown

Defined in: object/types.ts:84

Custom merge function for specific keys.

Parameters

key

string

target

unknown

source

unknown

Returns

unknown