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)
This commit is contained in:
riChar
2024-03-04 23:05:38 +08:00
committed by GitHub
parent 217755bb5a
commit 323eaa0242

View File

@@ -3,6 +3,7 @@
"version": "1.0.6", "version": "1.0.6",
"description": "Library for KernelSU's module WebUI", "description": "Library for KernelSU's module WebUI",
"main": "index.js", "main": "index.js",
"types": "index.d.ts",
"scripts": { "scripts": {
"test": "npm run test" "test": "npm run test"
}, },