From 5ddc9ab133512cf8397ddfeee4c94febf5031088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Sat, 29 Apr 2023 11:41:48 +0200 Subject: [PATCH] Fixed some problems related to types resolution --- package.json | 2 ++ packages/isomorphic-unfetch/package.json | 1 + polyfill/polyfill.d.ts | 1 + 3 files changed, 4 insertions(+) create mode 100644 polyfill/polyfill.d.ts diff --git a/package.json b/package.json index c5ba342..fabf739 100644 --- a/package.json +++ b/package.json @@ -15,10 +15,12 @@ }, "exports": { ".": { + "types": "./src/index.d.ts", "import": "./index.mjs", "default": "./index.js" }, "./polyfill": { + "types": "./polyfill/polyfill.d.ts", "default": "./polyfill/index.js" }, "./package.json": "./package.json", diff --git a/packages/isomorphic-unfetch/package.json b/packages/isomorphic-unfetch/package.json index ff2dc75..a7ba853 100644 --- a/packages/isomorphic-unfetch/package.json +++ b/packages/isomorphic-unfetch/package.json @@ -4,6 +4,7 @@ "description": "Switches between unfetch & node-fetch for client & server.", "exports": { ".": { + "types": "./index.d.ts", "import": "./index.mjs", "default": "./index.js" }, diff --git a/polyfill/polyfill.d.ts b/polyfill/polyfill.d.ts new file mode 100644 index 0000000..336ce12 --- /dev/null +++ b/polyfill/polyfill.d.ts @@ -0,0 +1 @@ +export {}