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
{{ message }}
This repository has been archived by the owner on Jul 27, 2018. It is now read-only.
Assume we have a reducer using tagged union types - i.e. function reducer(state: AppState, action: ActionTypeA | ActionTypeB | ActionTypeC): AppState { return state; } - and wanted to handle a router action. This doesn't seem to work out of the box since the actions are untyped.
The text was updated successfully, but these errors were encountered:
The problem with that usage is that it seems to break the type inference magic typescript does w/ the union types and consequently I lose type checking on the action payload.
Assume we have a reducer using tagged union types - i.e.
function reducer(state: AppState, action: ActionTypeA | ActionTypeB | ActionTypeC): AppState { return state; }
- and wanted to handle a router action. This doesn't seem to work out of the box since the actions are untyped.The text was updated successfully, but these errors were encountered: