Skip to content

Commit

Permalink
Merge pull request #239 from design-media-sf/missing-type
Browse files Browse the repository at this point in the history
  • Loading branch information
TehShrike authored Mar 16, 2023
2 parents 52f9ff3 + ebb06e6 commit bd3236d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ declare function deepmerge<T1, T2>(x: Partial<T1>, y: Partial<T2>, options?: dee

declare namespace deepmerge {
export interface Options {
arrayMerge?(target: any[], source: any[], options?: Options): any[];
arrayMerge?(target: any[], source: any[], options?: ArrayMergeOptions): any[];
clone?: boolean;
customMerge?: (key: string, options?: Options) => ((x: any, y: any) => any) | undefined;
isMergeableObject?(value: object): boolean;
}
export interface ArrayMergeOptions {
isMergeableObject(value: object): boolean;
cloneUnlessOtherwiseSpecified(value: object, options?: Options): object;
}

export function all (objects: object[], options?: Options): object;
export function all<T> (objects: Partial<T>[], options?: Options): T;
Expand Down

0 comments on commit bd3236d

Please sign in to comment.