Skip to content

Commit

Permalink
fix: make the user functions less strict
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebecca Stevens committed Nov 9, 2020
1 parent 0c306df commit 9185f1f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,18 @@ type ShouldMergeArrays<T1, T2> = Is<T1, ReadonlyArray<any>> extends true
? Is<T2, ReadonlyArray<any>>
: false;

type ArrayMerge = <T1, T2>(
target: Array<T1>,
source: Array<T2>,
type ArrayMerge = (
target: Array<any>,
source: Array<any>,
options: Required<deepmerge.Options>
) => any;

type ObjectMerge = <T1, T2>(
type ObjectMerge = (
key: string,
options: Required<deepmerge.Options>
) => ((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;
Expand Down

0 comments on commit 9185f1f

Please sign in to comment.