From 265a4446ac268ca549e3cd5ee19fcf0a37c65421 Mon Sep 17 00:00:00 2001 From: BerkliumBirb <104872723+BerkliumBirb@users.noreply.github.com> Date: Wed, 20 Mar 2024 09:57:23 +0300 Subject: [PATCH] Add types in package exports (#10) Now typescript supports special "types" type in package.json#exports https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#packagejson-exports-imports-and-self-referencing --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index bdea70f..f81160d 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "main": "index.js", "module": "index.mjs", "exports": { + "types": "./index.d.ts", "require": "./index.js", "import": "./index.mjs" },