Created
August 23, 2018 14:44
-
-
Save matthew-gerstman/e544e1e35f1e88c6c011a832910479a4 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
| // data/wizards/actions.ts | |
| import { WizardActionTypes, WizardNamespaceShape } from "./types"; | |
| export function hydrateWizardNamespace(initialData: WizardNamespaceShape) { | |
| return { | |
| type: WizardActionTypes.Hydrate, | |
| payload: initialData | |
| }; | |
| } | |
| // LearnSpell and KillParents are exercises left up to the reader |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment