Created
December 17, 2019 18:20
-
-
Save carlrip/4a595f88f6f6ea57e5705650adf01055 to your computer and use it in GitHub Desktop.
const assertions - action object
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
function createGetPersonAction() { | |
return { type: 'GetPerson' } as const; | |
} | |
const getPersonAction = createGetPersonAction(); // `getPersonAction` is of type `{ readonly type: "GetPerson"; }` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment