pagopa / openapi-codegen-ts

App IO - Utils
European Union Public License 1.2
37 stars 12 forks source link

Error- 'Type<any, any, unknown>' is not assignable to type 'Mixed' #147

Open b-wils opened 4 years ago

b-wils commented 4 years ago

Getting this error on generated code that uses utility functions from italia-ts-commons.

Versions: io-ts: 2.0.1 italia-utils: 4.1.0 typescript: 3.7.2

Type definitions seem like they should be compatible but getting this error. Any ideas on resolving?

gunzip commented 4 years ago

probably it does not work with io-ts 2.x (try using the same version of io-utils package)

b-wils commented 4 years ago

That seems to be the case. Has there been any investigation on what it would take to support 2.x? I would need to rewrite some io-ts code to downgrade and beyond that I am less inclined to use the library if it can't support recent versions.

I can take a look at what it would take to support v2 if this hasn't been done already.

gunzip commented 4 years ago

indeed, since we chose to maintain compatibility with other projects, we never took a look into upgrading. of course that would be useful, any help is appreciated :)