We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
You should create Actions classes for router-store to avoid this kind of reducer definitions :
router-store
export function reducer( state: State = initialState, action: feature.Actions | { type: string, payload?: any }, ) : State { switch (action.type) { case fromRouter.ROUTER_NAVIGATION: { } case feature.MY_FEATURE_ACTION: { } }
(or bring back the Action interface with the payload property)
The text was updated successfully, but these errors were encountered:
Actually you can simply write:
action: feature.Actions & { payload?: any }
and it should work as expected
Sorry, something went wrong.
feat(router-store): add action types
942da85
Closes #44
9476c9a
feat(router-store): Added action types (#47)
1f67cb3
140c8e4
vsavkin
No branches or pull requests
You should create Actions classes for
router-store
to avoid this kind of reducer definitions :(or bring back the Action interface with the payload property)
The text was updated successfully, but these errors were encountered: