Files
ChatLab/tsconfig.web.json
T
diguaandClaude Sonnet 4.6 35b5e720d4 fix(test): fix type errors in worker-runtime and core-data-provider tests
Cast FakeSemanticIndexRuntime via unknown to satisfy the full
SemanticIndexRuntime interface in the factory return type.

Enable allowImportingTsExtensions in tsconfig.web.json so test files
importing .mts helpers pass vue-tsc type checking.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-23 00:21:18 +08:00

31 lines
874 B
JSON

{
"extends": "@electron-toolkit/tsconfig/tsconfig.web.json",
"include": ["src/env.d.ts", "src/**/*", "apps/desktop/preload/**/*.d.ts", "packages/**/*"],
"exclude": ["**/dist/**", "packages/*/bin/**"],
"compilerOptions": {
"baseUrl": ".",
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"moduleResolution": "Bundler",
"strict": true,
"jsx": "preserve",
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"lib": ["ESNext", "DOM"],
"skipLibCheck": true,
"noEmit": true,
"noUnusedLocals": true,
"strictNullChecks": true,
"allowJs": true,
"allowImportingTsExtensions": true,
"forceConsistentCasingInFileNames": true,
"paths": {
"@/*": ["src/*"],
"@electron/*": ["apps/desktop/*"],
"@openchatlab/*": ["packages/*"]
}
}
}