Skip to content

Commit 84d0a93

Browse files
beeequeuemattphillips
authored andcommitted
add typescript types (mattphillips#26)
1 parent 8bdd20d commit 84d0a93

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

index.d.ts

+9
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

+2
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)