Replies: 1 comment
-
I tried zod on a personal project over the weekend I think it could be a good fit for our use case. The basic concept is that you build a Schema object using the library and can then the library 'infer' function to generate a typescript A Schema object has methods to (inter alia) parse an object to test if it matches the schema and can be cast as your If it doesn't match, there is a structured This seems a better approach than the one we have with io-ts, which relies on unsafely casting the unverified |
Beta Was this translation helpful? Give feedback.
-
Comment on the dev/dev channel from George B :
Beta Was this translation helpful? Give feedback.
All reactions