What should I do if I want to recover the parsed data again? #112
-
For example, in @effect/schema, i can decode and encode as follows. https://github.com/Effect-TS/schema#transformations I want to use valibot in my team because it looks easier to use, but I need this feature. |
Beta Was this translation helpful? Give feedback.
Answered by
fabian-hiller
Aug 22, 2023
Replies: 1 comment 5 replies
-
Maybe the following link helps: https://valibot.dev/guides/methods/#transform |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Valibot currently only allows decode and not encode. What exactly is your use case? Why do you need to encode? Can you send me Valibot pseudocode with your dream API. Then I can think about the implementation.
But in principle, due to the modularity of Valibot, you can also write your own method that adds functionality that Valibot doesn't currently have.