优化
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { z } from 'zod'
|
||||
|
||||
export const appearanceValidator = z.object({
|
||||
theme: z
|
||||
.enum(['light', 'dark'], {
|
||||
error: 'Please select a theme.',
|
||||
}),
|
||||
font: z
|
||||
.enum(['inter', 'manrope', 'system'], {
|
||||
error: 'Please select a font.',
|
||||
}),
|
||||
})
|
||||
|
||||
export type AppearanceValidator = z.infer<typeof appearanceValidator>
|
||||
Reference in New Issue
Block a user