mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-06 08:47:23 +00:00
Improve AppConfigSchema type
This commit is contained in:
1 file changed
+1
-1
@@ -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(),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user