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, |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi, I found
partialsaves a lot of code usingoptionalin object. It is great! But onlypartialworks 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!
All reactions