piotrwitek / typesafe-actions

Typesafe utilities for "action-creators" in Redux / Flux Architecture
https://codesandbox.io/s/github/piotrwitek/typesafe-actions/tree/master/codesandbox
MIT License
2.41k stars 98 forks source link

There is no $call in utility-types #34

Closed zdila closed 6 years ago

zdila commented 6 years ago

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

zdila commented 6 years ago

Workaround is to use #22 :-)

piotrwitek commented 6 years ago

Basically the mental-map is like this:

< TS v2.8:

>= TS v2.8

$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