Closed Yukaii closed 1 year ago
https://zod.dev/?id=basic-usage
const User = z.object({ username: z.string(), }); User.parse({ username: "Ludwig" }); // extract the inferred type type User = z.infer<typeof User>; // { username: string }
https://zod.dev/?id=basic-usage