Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
We all know it when you have to do something in TypeScript and cannot safely decode any JSON. That's why my friend and I created an npm library called schemawax. It gives you Elm-like decoders that fit nicely into TypeScript. Its output is fully typed and it is just 1.5 kB min+gzip!
Are you familiar with Zod? This is the decoder the I use on my projects. Any thoughts on this package?
The readme is nicer than my version of decoders/ parsers. I also added in matching since that is the one thing I miss the most when I go back to typescript. https://github.com/blu-j/ts-matches.
Related posts
- Elm-inspired TypeScript decoding library now supports recursive decoders!
- λ "Functions all the way down" data validation for JavaScript and TypeScript
- From Flaky to Flawless: Angular API Response Management with Zod
- TypeScript Essentials: Distinguishing Types with Branding
- You can’t run away from runtime errors using TypeScript