joshburgess / redux-most

Most.js based middleware for Redux. Handle async actions with monadic streams & reactive programming.
https://www.npmjs.com/package/redux-most
MIT License
139 stars 14 forks source link

Does not work with Typescript 3.4 #34

Closed jackmellis closed 3 years ago

jackmellis commented 5 years ago

We've just updated to the latest TS version and now our build fails with the following error:

node_modules/redux-most/index.d.ts:27:32 - error TS2344: Type 'Dispatch<A>' does not satisfy the constraint 'Dispatch<AnyAction>'.
  Type 'AnyAction' is not assignable to type 'A'.

27   middlewareApi: MiddlewareAPI<Dispatch<A>, S>,

I downgraded TS to the last non-3.4 version (I think it was 3.3.4000) and it worked fine. Presumably TS is now picking up on something that was missed before...

jackmellis commented 3 years ago

our eventual solution to this problem was to stop using redux :laughing: :rofl: