8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
z.object().check()
value
any
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using @zod/mini version 4.0.0-beta.20250505T195954, the the following code has incorrect type information for the check function:
@zod/mini
4.0.0-beta.20250505T195954
const Thing = z.object({ name: z.string(), age: z.number() }).check(({ value, issues }) => { }); type ThingOutput = z.infer<typeof Thing> // { name: string; age: number } type ThingInput = z.input<typeof Thing> // { name: string; age: number }
With the previous beta, z.interface() would give the correct type for value.
z.interface()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Using
@zod/mini
version4.0.0-beta.20250505T195954
, the the following code has incorrect type information for the check function:With the previous beta,
z.interface()
would give the correct type forvalue
.The text was updated successfully, but these errors were encountered: