3.1.1 (2023-06-12)
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) });