refactor: improve TypeScript type safety across codebase

Add global pinia type declaration for the custom unistorage option.
Add typed interfaces for all Pinia stores and enforce type safety on state and actions.
Add strict type annotations to all utility classes and helper functions.
Fix API response typing in the quick booking list page.
Remove unused iconsMap import in RefundPopup component.
Update package build scripts and add missing terser dependency.
Clean up outdated auto-generated component type definitions.
This commit is contained in:
DEV_DSW
2026-06-04 13:36:32 +08:00
parent 354232b444
commit 9b33bffdca
20 changed files with 384 additions and 214 deletions

View File

@@ -5,11 +5,11 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build --mode production",
"build:staging": "vue-tsc --noEmit && vite build --mode staging",
"build:prod": "vue-tsc --noEmit && vite build --mode production",
"build": "node ./node_modules/vue-tsc/bin/vue-tsc.js --noEmit && node ./node_modules/vite/bin/vite.js build --mode production",
"build:staging": "node ./node_modules/vue-tsc/bin/vue-tsc.js --noEmit && node ./node_modules/vite/bin/vite.js build --mode staging",
"build:prod": "node ./node_modules/vue-tsc/bin/vue-tsc.js --noEmit && node ./node_modules/vite/bin/vite.js build --mode production",
"preview": "vite preview --host 0.0.0.0",
"typecheck": "vue-tsc --noEmit",
"typecheck": "node ./node_modules/vue-tsc/bin/vue-tsc.js --noEmit",
"test": "node --test src/**/*.test.ts"
},
"dependencies": {
@@ -36,6 +36,7 @@
"concurrently": "^9.2.1",
"sass": "^1.70.0",
"tailwindcss": "^4.1.12",
"terser": "^5.16.0",
"typescript": "^5.8.3",
"unplugin-auto-import": "^21.0.0",
"unplugin-vue-components": "^32.1.0",