fix: add tsconfig.json, @types/chrome, fix TS errors - CI typecheck now passes
Some checks failed
CI — Test & Build / Test & Build (push) Failing after 9s

This commit is contained in:
Forge
2026-03-06 13:47:24 +08:00
parent 7713fb1b1d
commit 050e291f73
6 changed files with 51 additions and 2 deletions

27
tsconfig.json Normal file
View File

@@ -0,0 +1,27 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "Bundler",
"lib": ["ESNext", "DOM"],
"jsx": "react-jsx",
"strict": true,
"noEmit": true,
"skipLibCheck": true,
"types": ["chrome"],
"esModuleInterop": true,
"allowImportingTsExtensions": true,
"paths": {
"~/*": ["./src/*"]
}
},
"include": [
"entrypoints/**/*",
"src/**/*",
".wxt/types/**/*"
],
"exclude": [
"node_modules",
".output"
]
}