-
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!
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
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.