You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR in /Users/sdavenport/code/angular-redux/example-app/src/app/store/reducers.ts (12,19): Argument of type'{ router: routerReducer...' is not assignable to parameter of type'ReducersMapObject'.
Property 'router' is incompatible with index signature.
Type '(state: string, action: RouterAction) => string' is not assignable to type'Reducer<any>'.
Types of parameters 'action' and 'action' are incompatible.
Type 'A' is not assignable to type'RouterAction'.
Type 'Action' is not assignable to type'RouterAction'.
Property 'payload' is missing intype'Action'.
Additional Notes:
(optional)
The text was updated successfully, but these errors were encountered:
Typescript's stricter checks for higher order functions have exposed a bug in the Redux typings, discussion here: reduxjs/redux#2467
A fix has been merged to Redux but it's waiting for a new npm release. In the meantime we might be able to get away with a downcast in the implementation of routerReducer.
This is a...
What toolchain are you using for transpilation/bundling?
ngc
Environment
NodeJS Version:
Typescript Version:
Angular Version:
@angular-redux/store version:
@angular/cli version: (if applicable)
OS:
Link to repo showing the issus
(optional, but helps a lot)
Expected Behaviour:
This should work fine (it does in typescript < 2.4)
Actual Behaviour:
You get a TSC error (below).
Stack Trace/Error Message:
Additional Notes:
(optional)
The text was updated successfully, but these errors were encountered: