.object({
page: z.number(),
perpage: z.number().min(1),
})
Then, I'm trying to parse a get request with ?page=1, but I'm getting a "Expected number, received string". Is there a way to validate a "numeric" string?
Use coerce
Обсуждают сегодня