5 ms·
You might be interested in this: https://github.com/gcanti/io-ts https://github.com/gcanti/io-ts and many related projects by Giulio.
by joe-stanton 9y ago
You might be interested in this: https://github.com/gcanti/io-ts https://github.com/gcanti/io-ts and many related projects by Giulio.
- joe-stanton 9y agoBeforehand I built something very similar to what you described for Flow (https://hackernoon.com/runtime-introspection-of-flow-types-ddb7e5b042a5 https://hackernoon.com/runtime-introspection-of-flow-types-d...). Many others superseded this implementation, the above being one example.
- tehno 9y agoThere's also very similar project at https://github.com/pelotom/runtypes https://github.com/pelotom/runtypes that our company uses. Don't have enough experience with it yet to say which is better, io-ts on runtypes.