Pass a zod schema to a form to ensure all required values are captured?
So IIRC with react-hook-form you can pass a zod schema to a useForm and it will give you typesense if you forgot to set a defaultField or a formField. Is there a similar pattern here?
for now im just casting the type
3 Replies
itchy-amethystOP•16mo ago
@crutchcorn any chance you could take a look?
quickest-silver•16mo ago
Don't tag maintainers
But also yes you just pass the type of the shape as the first argument of useForm
itchy-amethystOP•16mo ago
sorry, noted. thanks!