From 41498c3c800982df86f68aa7c36ac1c606a84f2a Mon Sep 17 00:00:00 2001 From: Micah Zoltu Date: Sun, 15 Jan 2023 07:58:21 -0800 Subject: [PATCH] Corrects bug in type discovery. For reasons I don't understand, TypeScript is finding `index.ts` instead of `index.d.ts` when it goes looking for types for `index.js`. This is despite the docs saying that it will find `index.d.ts`. https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html#including-declarations-in-your-npm-package None the less, this can be resolved by just being explicit, as done in this PR. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 9d1b2eb..3d7bd8f 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "type": "module", "main": "index.js", "module": "index.js", + "types": "index.d.ts", "files": [ "index.js", "index.d.ts",