Skip to content

There is no $call in utility-types #34

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

Closed
zdila opened this issue May 11, 2018 · 2 comments
Closed

There is no $call in utility-types #34

zdila opened this issue May 11, 2018 · 2 comments
Assignees
Labels

Comments

@zdila
Copy link

zdila commented May 11, 2018

Tutorial uses import { $call } from 'utility-types'; but there is no $call exported.

@zdila
Copy link
Author

zdila commented May 11, 2018

Workaround is to use #22 :-)

@piotrwitek piotrwitek self-assigned this May 11, 2018
@piotrwitek
Copy link
Owner

piotrwitek commented May 11, 2018

Basically the mental-map is like this:

< TS v2.8:

  • use utility-types v1.x.x and typesafe-actions v1.x.x

>= TS v2.8

  • use utility-types v2.x.x and typesafe-actions v2.x.x

$call was a workaround for pre TS v2.8 when expression return type inference was impossible, from TS v2.8 it's not needed anymore and was removed

I'll try to add it in the documentation to avoid further questions

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

No branches or pull requests

2 participants