From 323eaa0242cf24729921e35b339820ec9b0a8aef Mon Sep 17 00:00:00 2001 From: riChar Date: Mon, 4 Mar 2024 23:05:38 +0800 Subject: [PATCH] Add types in package.json (#1415) The package can not be imported into TS project without this option. [docs](https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html#including-declarations-in-your-npm-package) --- js/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/js/package.json b/js/package.json index 1588b40f..02b350f3 100644 --- a/js/package.json +++ b/js/package.json @@ -3,6 +3,7 @@ "version": "1.0.6", "description": "Library for KernelSU's module WebUI", "main": "index.js", + "types": "index.d.ts", "scripts": { "test": "npm run test" },