From 659a623c94bd6b210e9beb6bb6061be540b05538 Mon Sep 17 00:00:00 2001 From: Ben Lesh Date: Mon, 19 Apr 2021 16:39:11 -0500 Subject: [PATCH] chore: Add typesVersions to package.json (#6229) This is an attempt to fix issues with VS Code auto-import, as described here in this issue: https://github.com/microsoft/TypeScript/issues/43034\#issuecomment-820621280 Related #6067 --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 46831d2eac..de2977bd4e 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,9 @@ "module": "./dist/esm5/index.js", "es2015": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", + "typesVersions": { + ">=4.0": { "*": [ "dist/types/*" ] } + }, "sideEffects": false, "exports": { ".": {