openapi-codegen-ts icon indicating copy to clipboard operation
openapi-codegen-ts copied to clipboard

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

Open b-wils opened this issue 6 years ago • 3 comments

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?

b-wils avatar Nov 19 '19 23:11 b-wils

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

gunzip avatar Nov 20 '19 09:11 gunzip

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.

b-wils avatar Nov 21 '19 18:11 b-wils

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 :)

gunzip avatar Nov 22 '19 15:11 gunzip