From 9dcf72c764f9b1b866dcf7b3eed0a0c613ae96e0 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 1 Feb 2018 01:08:46 +0100 Subject: [PATCH] add typescript types --- index.d.ts | 9 +++++++++ package.json | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 index.d.ts 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": {