Update index.d.ts (#14060)

Order of overloads matters - otherwise correct overload is not selected.
This commit is contained in:
Matthias Baumann
2017-01-17 22:01:50 +01:00
committed by Mohamed Hegazy
parent bc12eadd2d
commit fbe3c79b6f

View File

@@ -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;