message: Use yup type inference for schema validation example
diff: @@ -2,21 +2,17 @@ export default `import { useForm } from "react-hook-form";
  import { yupResolver } from '@hookform/resolvers/yup';
  import * as yup from "yup";
  -interface IFormInputs {
  - firstName: string
  - age: number
  -}
  -
  const schema = yup.object({
  firstName: yup.string().required(),
  age: yup.number().positive().integer().required(),
  }).required();
  +type FormData = yup.InferType<typeof schema>;
  export default function App() {
  - const { register, handleSubmit, formState: { errors } } = useForm<IFormInputs>({
  + const { register, handleSubmit, formState: { errors } } = useForm<FormData>({
  resolver: yupResolver(schema)
  });
  - const onSubmit = (data: IFormInputs) => console.log(data);
  + const onSubmit = (data: FormData) => console.log(data);
  return (
  <form onSubmit={handleSubmit(onSubmit)}>
  