Improve AppConfigSchema type

This commit is contained in:
Alex Gleason 2025-07-05 17:50:21 -05:00
parent 65b974fb41
commit a2eab78ae3
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

View File

@ -14,7 +14,7 @@ interface AppProviderProps {
} }
// Zod schema for AppConfig validation // Zod schema for AppConfig validation
const AppConfigSchema: z.ZodType<AppConfig> = z.object({ const AppConfigSchema: z.ZodType<AppConfig, z.ZodTypeDef, unknown> = z.object({
theme: z.enum(['dark', 'light', 'system']), theme: z.enum(['dark', 'light', 'system']),
relayUrl: z.string().url(), relayUrl: z.string().url(),
}); });