-
-
Save dagda1/8e096f1f5334574ff1f20c0ccd0d49d3 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
const setCount = (n: number) => { | |
return { | |
type: 'SET_COUNT', | |
payload: n | |
} as const; | |
} | |
const resetCount = () => { | |
return { | |
type: 'RESET_COUNT' | |
} as const; | |
} | |
type CountActions = ReturnType<typeof setCount> | ReturnType<typeof resetCount>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment