mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2025-08-27 13:09:22 +00:00
Improve AppConfigSchema type
This commit is contained in:
parent
65b974fb41
commit
a2eab78ae3
@ -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(),
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user