Closed fartinmartin closed 3 weeks ago
I think the API reference of optional
is probably the wrong location but we could add such an example to the optionals guide: https://valibot.dev/guides/optionals/
Ah, totally—that makes sense to me! I've updated the branch, let me know if I should tweak it further!
Thank you! I will try to review it on the weekend.
As I understand, this is the conventional way to apply default values to optional props. I thought we could include it in the docs (until if/when a more concise API is added)!