Typescript-json > zod ? #174
Replies: 2 comments
-
Hello, please do not create issues for questions. Go on discussions tab, it's made for this use case. I converted this to one. For the question itself, Typescript json is based on a superset of typescript: Zodios is completely based on zod, hence the name. It's indeed a deliberate choice. Indeed, Zodios is now javascript compliant library (meaning it works and autocompletes your code even though you are not using typescript). Thank you for asking. |
Beta Was this translation helpful? Give feedback.
-
@thelinuxlich With the new type provider system, i guess you'll now be able to create a provider for typescript-json |
Beta Was this translation helpful? Give feedback.
-
There is a new player in the field of TS runtime validation libraries. typescript-json adds a plugin transform to tsconfig.json and can work with existing TS types.
Pros
Cons
I understand the library is deeply committed to zod but anyway I thought it would be interesting to share this, might be gamechanging.
Beta Was this translation helpful? Give feedback.
All reactions