fix(build): resolve TypeScript errors and add missing dependencies

- Add missing zustand dependency to package.json
- Fix unused variable errors in ToolWidgets.tsx
- Remove invalid 'white' theme comparison in claudeSyntaxTheme.ts
- Add proper TypeScript types to stores using StateCreator pattern
- Add null checks and type casting in Settings.tsx filter operations
- Add onChange handler to Switch component to suppress React warning
- Add 'check' script for TypeScript validation

These changes ensure the TypeScript build passes without errors.
This commit is contained in:
Mufeed VH
2025-07-28 15:28:07 +05:30
parent c87d36e118
commit efdeff7a31
8 changed files with 53 additions and 35 deletions

View File

@@ -8,7 +8,8 @@
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"tauri": "tauri"
"tauri": "tauri",
"check": "tsc --noEmit && cd src-tauri && cargo check"
},
"dependencies": {
"@hookform/resolvers": "^3.9.1",