@hookform/resolvers
6.0.2 · 28 Oct 2026MIT41.5M / weekRepositoryHomepagenpmAtom feed
Your version
3.10.0 is the newest release of 3.x.
In short
1 fixed
Release note
Breaking changes
Bug Fixes
You don't need to explicitly provide the type when using the useForm function because it automatically infers the types from the Yup schema.
Before
const schema = Yup.shape({ name: string });
const { register } = useForm<{name: string}>({ resolver: yupResolver(schema) });After
const schema = Yup.shape({ name: string });
const { register } = useForm({ resolver: yupResolver(schema) });