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.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
One thing I did realise after looking at your code was that I could try changing the attributes property to a Record and see if https://github.com/rhys-vdw/ts-auto-guard handled that well, which it did!
I've also looked at https://github.com/gcanti/io-ts and https://github.com/pelotom/runtypes but both have a manual step converting the types into a runtime representiation by hand which I'd like to avoid.
I've also looked at https://github.com/gcanti/io-ts and https://github.com/pelotom/runtypes but both have a manual step converting the types into a runtime representiation by hand which I'd like to avoid.
You can use the plugin https://github.com/awerlogus/io-ts-transformer with https://github.com/cevek/ttypescript to get compile time generation of io-ts codecs as well.
You can use the plugin https://github.com/awerlogus/io-ts-transformer with https://github.com/cevek/ttypescript to get compile time generation of io-ts codecs as well.