Replies: 2 comments 1 reply
-
|
Create idea! The next v1 RC version will support it! 🚀 |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Valibot v1.0.0-rc.2 is available |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Would it be possible for the
readonlyaction to convert aMapto aReadonlyMap? It currently produces aReadonly<Map>, which makes all the properties of theMapreadonly, so I couldn't, for example, modify theclearmethod, but I could still call theclearmethod without receiving a TypeScript error.Here's some example code (also available in the Valibot playground):
A similar thing happens for a
Set, so if it is possible for thereadonlyaction to produce aReadonlySet, that would be great, too.If you do not want to change the behavior of the
readonlyaction to produceReadonlyMapandReadonlySetforMapandSetinstances, then how would you feel about a separate action that could do this?Beta Was this translation helpful? Give feedback.
All reactions