mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
Update index.d.ts (#14060)
Order of overloads matters - otherwise correct overload is not selected.
This commit is contained in:
committed by
Mohamed Hegazy
parent
bc12eadd2d
commit
fbe3c79b6f
4
deep-diff/index.d.ts
vendored
4
deep-diff/index.d.ts
vendored
@@ -22,9 +22,9 @@ declare namespace deepDiff {
|
||||
(path: string[], key: string): boolean;
|
||||
}
|
||||
|
||||
interface IDeepDiff {
|
||||
diff(): IDiff;
|
||||
interface IDeepDiff {
|
||||
diff(lhs: Object, rhs: Object, prefilter?: IPrefilter, acc?: IAccumulator): IDiff[];
|
||||
diff(): IDiff;
|
||||
observableDiff(lhs: Object, rhs: Object, changes: Function, prefilter?: IPrefilter, path?: string[], key?: string, stack?: Object[]): void;
|
||||
applyDiff(target: Object, source: Object, filter: Function): void;
|
||||
applyChange(target: Object, source: Object, change: IDiff): void;
|
||||
|
||||
Reference in New Issue
Block a user