From aaab38afe6cb4305d22cce8c3c258a3127a92a46 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Mon, 10 Feb 2025 12:36:46 +0100 Subject: [PATCH] fix: resolve types with node10-style moduleResolution Adds a fix to allow resolving types with `tsc`'s older `node10`-style module resolution. --- package.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/package.json b/package.json index b4f4020..419bd7d 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,16 @@ "main": "./dist/cjs/lib/index.cjs", "module": "./dist/esm/lib/index.mjs", "types": "./dist/types/lib/index.d.ts", + "typesVersions": { + "*": { + "*": [ + "dist/types/lib/index.d.ts" + ], + "polyfill": [ + "dist/types/polyfill/index.d.ts" + ] + } + }, "exports": { ".": { "types": "./dist/types/lib/index.d.ts",