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:
@@ -170,12 +170,12 @@ export const Settings: React.FC<SettingsProps> = ({
|
||||
const updatedSettings: ClaudeSettings = {
|
||||
...settings,
|
||||
permissions: {
|
||||
allow: allowRules.map(rule => rule.value).filter(v => v.trim()),
|
||||
deny: denyRules.map(rule => rule.value).filter(v => v.trim()),
|
||||
allow: allowRules.map(rule => rule.value).filter(v => v && String(v).trim()),
|
||||
deny: denyRules.map(rule => rule.value).filter(v => v && String(v).trim()),
|
||||
},
|
||||
env: envVars.reduce((acc, { key, value }) => {
|
||||
if (key.trim() && value.trim()) {
|
||||
acc[key] = value;
|
||||
if (key && String(key).trim() && value && String(value).trim()) {
|
||||
acc[key] = String(value);
|
||||
}
|
||||
return acc;
|
||||
}, {} as Record<string, string>),
|
||||
|
Reference in New Issue
Block a user