From adc29417d837207367630f533ba299aa7eeeae91 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 b585ca7..7a54a3f 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -103,18 +103,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;