From 99bfb32748d131ac8c53856c84f384af35e07886 Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Sat, 27 Mar 2021 14:11:22 -0700 Subject: [PATCH] feat: add type definitions; - Closes #11 --- index.d.ts | 1 + package.json | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..6e87365 --- /dev/null +++ b/index.d.ts @@ -0,0 +1 @@ +export default function (input: Record): string; diff --git a/package.json b/package.json index 90bfd19..313fab4 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "unpkg": "dist/obj-str.min.js", "module": "dist/obj-str.mjs", "main": "dist/obj-str.js", + "types": "index.d.ts", "umd:name": "objstr", "license": "MIT", "author": { @@ -21,6 +22,7 @@ "test": "uvu -r esm -i fixtures test" }, "files": [ + "*.d.ts", "dist" ], "keywords": [