diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..e848bff --- /dev/null +++ b/index.d.ts @@ -0,0 +1,9 @@ +export function diff (originalObj: object, updatedObj: object): object + +export function addedDiff (originalObj: object, updatedObj: object): object + +export function deletedDiff (originalObj: object, updatedObj: object): object + +export function updatedDiff (originalObj: object, updatedObj: object): object + +export function detailedDiff (originalObj: object, updatedObj: object): object diff --git a/package.json b/package.json index 3153a1c..695400e 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,10 @@ "version": "1.0.4", "description": "Deep diffs two objects, including nested structures of arrays and objects, and return the difference.", "main": "dist/index.js", + "types": "./index.d.ts", "files": [ "dist", + "index.d.ts", "README.md" ], "scripts": {