fix(Form): match error-pattern on input validation (#2606)

This commit is contained in:
Romain Hamel
2024-11-11 22:50:22 +01:00
committed by GitHub
parent 6d3dbdbee5
commit 3584a3328b
5 changed files with 19 additions and 10 deletions

View File

@@ -32,7 +32,7 @@ const schema = z.object({
slider: z.number().max(20, { message: 'Must be less than 20' })
})
type Schema = z.output<typeof schema>
type Schema = z.input<typeof schema>
const state = reactive<Partial<Schema>>({})