Repository navigation
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 |
Uh oh!
There was an error while loading. Please reload this page.
Comment on the dev/dev channel from George B :
All reactions