react-hook-form / resolvers

📋 Validation resolvers: Yup, Zod, Superstruct, Joi, Vest, Class Validator, io-ts, Nope, computed-types, typanion, Ajv, TypeBox, ArkType, Valibot, effect-ts and VineJS
https://react-hook-form.com/
MIT License
1.74k stars 159 forks source link

fix(zod): allow inferring specific `Resolver` type from `zodResolver` #653

Open mintchkin opened 10 months ago

mintchkin commented 10 months ago

Summary

Allows the result of zodResolver to infer the schema shape, based on the zod schema it's been passed. This matches the behavior of the similar yupResolver, as implemented in #563

Resolves #429, #447, #551

stale[bot] commented 6 months ago

Thank you for your contributions! This Pull Request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Best, RHF Team ❤️

dkAndFed commented 1 week ago

Will this be merged at some point?