From ae5af267afc7774471c6dc2f6c5322f3edffe377 Mon Sep 17 00:00:00 2001 From: YiJie <51358815+NWYLZW@users.noreply.github.com> Date: Mon, 4 Dec 2023 23:46:05 +0800 Subject: [PATCH] fix: define types in exports (#179) If the user use the ts and set `moduleResolution: nodenext` of `tsconfig.json`, this type will not be available. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 7b839e2..1bd4227 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ ], "exports": { ".": { + "types": "./src/index.d.ts", "import": "./src/index.js", "require": "./lib/index.cjs" }