TehShrike / deepmerge

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

Add separate type for options passed to custom functions #200

Open bespokebob opened 4 years ago

bespokebob commented 4 years ago

Before the options are passed to custom functions, they are set to default values and have an additional "cloneUnlessOtherwiseSpecified" function added. This adds a separate type for the required/default options with the additional function.

bespokebob commented 4 years ago

This replaces #189

bespokebob commented 4 years ago

The typescript update in #198 would probably fix the build...