From b40d245311fb15ebab82960c53d347d791fd2825 Mon Sep 17 00:00:00 2001 From: saibotk Date: Mon, 20 Mar 2023 07:24:55 +0100 Subject: [PATCH] Add missing type export declaration (#11) This will allow people to use this package together with the new moduleResolution: "bundler" option enabled, which was added in TypeScript 5.0. Otherwise type declarations are entirely missing. --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4d61926..dfa519d 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ "source": "src/index.ts", "exports": { "require": "./dist/index.cjs", - "default": "./dist/index.esm.js" + "default": "./dist/index.esm.js", + "types": "./dist/index.d.ts" }, "types": "./dist/index.d.ts", "main": "./dist/index.cjs", @@ -62,4 +63,4 @@ "update", "change" ] -} +} \ No newline at end of file