refactor: move all TypeScript interfaces to centralized src/js/types folder
- Create type files with barrel export via @/types alias - Update logic files to use centralized type imports
This commit is contained in:
@@ -6,14 +6,12 @@
|
||||
// "lib": ["ES2022", "DOM", "DOM.Iterable"],
|
||||
// "types": ["vite/client"],
|
||||
// "skipLibCheck": true,
|
||||
|
||||
// /* Bundler mode */
|
||||
// "moduleResolution": "bundler",
|
||||
// "allowImportingTsExtensions": true,
|
||||
// "verbatimModuleSyntax": true,
|
||||
// "moduleDetection": "force",
|
||||
// "noEmit": true,
|
||||
|
||||
// /* Linting */
|
||||
// "strict": true,
|
||||
// "noUnusedLocals": true,
|
||||
@@ -24,14 +22,20 @@
|
||||
// },
|
||||
// "include": ["src"]
|
||||
// }
|
||||
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"module": "ESNext",
|
||||
"lib": ["ES2022", "DOM", "DOM.Iterable", "WebWorker"],
|
||||
"types": ["vite/client", "vitest/globals"], // Added vitest/globals
|
||||
|
||||
"lib": [
|
||||
"ES2022",
|
||||
"DOM",
|
||||
"DOM.Iterable",
|
||||
"WebWorker"
|
||||
],
|
||||
"types": [
|
||||
"vite/client",
|
||||
"vitest/globals"
|
||||
], // Added vitest/globals
|
||||
/* Easier module handling for Vite */
|
||||
"moduleResolution": "bundler",
|
||||
"allowJs": true,
|
||||
@@ -39,29 +43,37 @@
|
||||
"skipLibCheck": true,
|
||||
"noEmit": true,
|
||||
"allowImportingTsExtensions": true,
|
||||
|
||||
/* Disable strict checks for now */
|
||||
"strict": false,
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
"noFallthroughCasesInSwitch": false,
|
||||
"noUncheckedSideEffectImports": false,
|
||||
|
||||
/* Fix for ArrayBuffer type issues */
|
||||
"noImplicitAny": false,
|
||||
|
||||
/* Quality-of-life options */
|
||||
"isolatedModules": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"resolveJsonModule": true,
|
||||
|
||||
/* Path aliases (optional but helpful) */
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
"@/*": [
|
||||
"./src/*"
|
||||
],
|
||||
"@/types": [
|
||||
"./src/js/types/index.ts"
|
||||
]
|
||||
}
|
||||
},
|
||||
"include": ["src", "src/**/*.ts", "public/workers"], // Updated to include all TS files
|
||||
"exclude": ["node_modules", "dist"]
|
||||
}
|
||||
"include": [
|
||||
"src",
|
||||
"src/**/*.ts",
|
||||
"public/workers"
|
||||
], // Updated to include all TS files
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"dist"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user