From 9185f1f754e94aad59540df39851dbe3914aa1b1 Mon Sep 17 00:00:00 2001 From: Rebecca Stevens Date: Tue, 10 Nov 2020 11:55:23 +1300 Subject: [PATCH] fix: make the user functions less strict --- types/index.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 4271a6a..ad7040f 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -104,18 +104,18 @@ type ShouldMergeArrays = Is> extends true ? Is> : false; -type ArrayMerge = ( - target: Array, - source: Array, +type ArrayMerge = ( + target: Array, + source: Array, options: Required ) => any; -type ObjectMerge = ( +type ObjectMerge = ( key: string, options: Required -) => ((target: T1, source: T2, options?: deepmerge.Options) => any) | undefined; +) => ((target: any, source: any, options?: deepmerge.Options) => any) | undefined; -type IsMergeable = (value: object) => boolean; +type IsMergeable = (value: any) => boolean; type DefaultOptions = { arrayMerge: undefined;