TehShrike / deepmerge

A library for deep (recursive) merging of Javascript objects
MIT License
2.75k stars 216 forks source link

Add cloneUnlessOtherwiseSpecified to Options type. #189

Closed chrislambe closed 4 years ago

chrislambe commented 4 years ago

cloneUnlessOtherwiseSpecified was added to the options object in https://github.com/TehShrike/deepmerge/pull/165 but they forgot to add it to the Options type.

bespokebob commented 4 years ago

This isn't entirely correct. cloneUnlessOtherwiseSpecified is added to the options for the arrayMerge function, but it can't be passed in by the caller. There really should be a separate type definition for options passed in to arrayMerge and customMerge.