buildo / metarpheus-io-ts

Generate domain models and client interpreting metarpheus output
MIT License
7 stars 1 forks source link

Expose io-ts-codegen as an API #85

Open gabro opened 5 years ago

gabro commented 5 years ago

Today, the only way to add customize metarpheus-io-ts output is to add stuff in the prelude. However this has some issues:

I propose to expose the io-ts-codegen API directly in metarpheus config, so that custom types can be added more naturally and participate in the topological sorting done by io-ts-codegen.

The entry point would be something that accepts an array of io-ts-codegen Nodes.