-
-
Save dagda1/f6b5503411ea04e32109035a746fa1ca to your computer and use it in GitHub Desktop.
const
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 <const>{ | |
type: 'SET_COUNT', | |
payload: n | |
} | |
} | |
const resetCount = () => { | |
return <const>{ | |
type: 'RESET_COUNT' | |
} | |
} | |
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