Why doesn't parseWithZod
Automatic type coercion of boolean types support ‘true’?
#793
Unanswered
shutootaki
asked this question in
Q&A
Replies: 1 comment
-
Also how can I pass 'false'? |
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
-
If you want to set a bool value for formData, you currently have to do the following.
This seems a bit redundant.
Personally, I think that if the string ‘true’ is set, it could be converted to a boolean type in the same way as ‘on’.
Is there a reason to only support ‘on’?
Or is there already a simpler way to implement this?
Beta Was this translation helpful? Give feedback.
All reactions