Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
b-wils opened this issue Nov 19, 2019 · 3 comments
Open

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

b-wils opened this issue Nov 19, 2019 · 3 comments

Comments

@b-wils
Copy link

b-wils commented Nov 19, 2019

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
Copy link
Contributor

gunzip commented Nov 20, 2019

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

@b-wils
Copy link
Author

b-wils commented Nov 21, 2019

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
Copy link
Contributor

gunzip commented Nov 22, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants