Replies: 1 comment
-
Your idea is great, but there are a few problems. If your object contains entries with different data types, it is not possible to define the default value with a single value, and your "exceptions" solution makes the API very complicated. Also, |
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
-
Hi, I found
partial
saves a lot of code usingoptional
in object. It is great! But onlypartial
works for object but could not set default values for object' keys.If I want a schema with default values '', it would be:
or with some exceptions
This is just a suggestion. I believe this would be a feat that other users would love. Thank you again for this great library!
Beta Was this translation helpful? Give feedback.
All reactions