Skip to content

Commit 4087da1

Browse files
committed
Update diff.d.ts
JsDiff can now diff javascript objects with the "diffJson" function.
1 parent 32029fc commit 4087da1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

diff/diff.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ declare module JsDiff {
3939

4040
function diffWordsWithSpace(oldStr:string, newStr:string):IDiffResult[];
4141

42+
function diffJson(oldObj: Object, newObj: Object): IDiffResult[];
43+
4244
function diffLines(oldStr:string, newStr:string):IDiffResult[];
4345

4446
function diffCss(oldStr:string, newStr:string):IDiffResult[];

0 commit comments

Comments
 (0)