Last active
February 13, 2020 09:26
-
-
Save zzdjk6/0d24813cad3d34322e487ece603bf9cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type ValidAction = | |
| ReturnType<typeof fetchDataRoutine.request> | |
| ReturnType<typeof fetchDataRoutine.success> | |
| ReturnType<typeof fetchDataRoutine.failure>; | |
const reducer = (state: State = initState, action: ValidAction): State => { | |
// The reducer logic goes here... | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment