【发布时间】:2022-12-27 23:23:22
【问题描述】:
I have the following schema.
const schema = z.object({
name: z.string().min(1)
})
Is there any way in zod to get the value stored in min?
const minValue = schema.shape...? // should be 1
【问题讨论】:
标签: reactjs typescript zod