TehShrike / deepmerge

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

Add ArrayMergeOptions interface #238

Closed raddevon closed 2 years ago

raddevon commented 2 years ago

Since the cloneUnlessOtherwiseSpecified function wasn't part of the Options interface, it couldn't be called in a TypeScript project even though it is passed to the arrayMerge callback on its options object.

Addresses an issue with a previous attempt to address this issue (#231) that it didn't define the arrayMerge's options independently from the existing Options interface even though the two are distinct.

raddevon commented 2 years ago

Re-submitting this PR on a different branch of my fork.