gcanti / io-ts-types

A collection of codecs and combinators for use with io-ts
https://gcanti.github.io/io-ts-types/
MIT License
311 stars 40 forks source link

fromNewtype non primitive type support added #123

Closed mlegenhausen closed 4 years ago

mlegenhausen commented 4 years ago

Without this change it not possible to use any type where the A is unequal to the O of Type<A, O>. I had the problem when using Int from io-ts as codec.

I added a test to prevent regression.

gcanti commented 4 years ago

Thanks @mlegenhausen, released.