default value #567
Replies: 2 comments 1 reply
-
More details here: https://valibot.dev/guides/optionals/#default-values |
Beta Was this translation helpful? Give feedback.
-
This is really hard to find and hampers overall adaption of Valibot. Spend several minutes going over the docs using search, and only the useless type defintion (https://valibot.dev/api/Default/) turned up, and I had to google and searching github for something that is a basic func. Please rethink adding a |
Beta Was this translation helpful? Give feedback.
-
I'm leaving this as if someone is also looking for how to set the default value, and under the keyword "default value valibot" nothing else would pop up for them. It's done with
v.optional
. Finding this took me significantly longer than it should have.Beta Was this translation helpful? Give feedback.
All reactions