Skip to content

Commit 9dcf72c

Browse files
author
Adam
committed
add typescript types
1 parent ae6464f commit 9dcf72c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

index.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export function diff (originalObj: object, updatedObj: object): object
2+
3+
export function addedDiff (originalObj: object, updatedObj: object): object
4+
5+
export function deletedDiff (originalObj: object, updatedObj: object): object
6+
7+
export function updatedDiff (originalObj: object, updatedObj: object): object
8+
9+
export function detailedDiff (originalObj: object, updatedObj: object): object

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"version": "1.0.4",
44
"description": "Deep diffs two objects, including nested structures of arrays and objects, and return the difference.",
55
"main": "dist/index.js",
6+
"types": "./index.d.ts",
67
"files": [
78
"dist",
9+
"index.d.ts",
810
"README.md"
911
],
1012
"scripts": {

0 commit comments

Comments
 (0)