From 7b5c3f5a0a0fe8c7d840cf9cbfbab4252590bcd9 Mon Sep 17 00:00:00 2001 From: Dmitri Zagidulin Date: Thu, 10 Aug 2023 23:21:57 -0400 Subject: [PATCH] Add a types entry for TypeScript. --- package.json | 1 + types/index.d.ts | 1 + 2 files changed, 2 insertions(+) create mode 100644 types/index.d.ts diff --git a/package.json b/package.json index bc46cc5..993386d 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "require": "./dist/cjs/index.cjs", "import": "./lib/index.js" }, + "types": "types/index.d.ts", "browser": { "./lib/agentCompatibility.js": "./lib/agentCompatibility-browser.js", "./tests/utils.cjs": "./tests/utils-browser.cjs" diff --git a/types/index.d.ts b/types/index.d.ts new file mode 100644 index 0000000..cc6dc29 --- /dev/null +++ b/types/index.d.ts @@ -0,0 +1 @@ +declare module '@digitalbazaar/http-client';