@fastify/deepmerge
Advanced tools
+1
-1
| { | ||
| "name": "@fastify/deepmerge", | ||
| "version": "2.0.2", | ||
| "version": "3.0.0", | ||
| "description": "Merges the enumerable properties of two or more objects deeply.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+1
-1
| # @fastify/deepmerge | ||
| [](https://github.com/fastify/deepmerge/actions/workflows/ci.yml) | ||
| [](https://github.com/fastify/deepmerge/actions/workflows/ci.yml) | ||
| [](https://www.npmjs.com/package/@fastify/deepmerge) | ||
@@ -5,0 +5,0 @@ [](https://github.com/neostandard/neostandard) |
+8
-0
@@ -64,5 +64,13 @@ type DeepMergeFn = <T1, T2>(target: T1, source: T2) => DeepMerge<T1, T2> | ||
| /** | ||
| * A function responsible handling the cloning logic of the provided prototype object. | ||
| * | ||
| * @param value - The proto object to clone. | ||
| * @returns the resulting clone (can also return the object itself if you do not want clone but replace). | ||
| */ | ||
| type CloneProtoObjectFn = (value: any) => any | ||
| type MergeArrayFn = (options: MergeArrayFnOptions) => (target: any[], source: any[]) => any[] | ||
| interface Options { | ||
| cloneProtoObject?: CloneProtoObjectFn; | ||
| mergeArray?: MergeArrayFn; | ||
@@ -69,0 +77,0 @@ symbols?: boolean; |
15997
2.13%221
3.76%