A createValidator helper #65
derekr
started this conversation in
Show and tell
Replies: 1 comment
-
I like it! 😄 One very minor suggestion I might make is to tweak the name. There's a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was finding that I needed to import 3 modules when building up a form and was playing around with a helper to reduce the boilerplate a little bit. Was a fun TS challenge to get working and maybe could be improved, but it will auto infer the zod schema without any casting. Not recommending this be in the lib, but a nice small copy-paste for folks that prefer something like this.
Beta Was this translation helpful? Give feedback.
All reactions