TehShrike / deepmerge

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

Update index.d.ts #231

Closed AndriesVDW closed 1 year ago

AndriesVDW commented 3 years ago

Add type for cloneUnlessOtherwiseSpecified

macdja38 commented 3 years ago

Since you can't specify it as an option this might call for a second options type that doesn't have this as a type which would be the options supplied to deepmerge. cloneUnlessOtherwiseSpecified should not be replaced and should only be accessed from within isMergableObject