EricCrosson / io-ts-docopt

Decode output of docopt with io-ts
1 stars 0 forks source link

Consider auto-generating an encode function #2

Open EricCrosson opened 4 years ago

EricCrosson commented 4 years ago

with the following rules

EricCrosson commented 4 years ago

I got this working but need a way to de-construct (rather than construct) template literals in order to keep the auto-encoded types inferrable

https://github.com/microsoft/TypeScript/pull/40336

This may be possible in 4.1 or we may have to wait for it, either way 4.1 hasn't landed yet so got to keep waiting.