unsplash / sum-types-io-ts

io-ts bindings for @unsplash/sum-types.
https://unsplash.github.io/sum-types-io-ts/
MIT License
2 stars 1 forks source link

Renamed tagged sums #23

Open samhh opened 1 year ago

samhh commented 1 year ago

Off the back of #18, #19, and #21, it may be useful to be able to rename the tags. This essentially would be combining these codecs with mapped nullary tags. Equivalent to Serde's rename attribute.

samhh commented 1 year ago

Could naively add variants of each with the name "mapped" in the name.