I am using react-hook-form and you must do useForm({resolver: yupResolver(mySchema)}) which while not difficult isn't optimal, so I wanted to create a wrapper around useForm so I can just do useForm({validation: mySchema}) and it will internally call the base useForm with resolver.
Functionally this is working, but I'm getting an error against the resolver prop and I really can't work out why.