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 enum ActionTypes { | |
A1 = "A1", | |
A2 = "A2", | |
} | |
type ReduxAction<Type extends ActionTypes, Payload> = { | |
type: Type, | |
payload: Payload | |
} |
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
/** | |
* Tag | |
* These are used to create the Tagged Union | |
**/ | |
const enum Tag { | |
None = "None", | |
Some = "Some" | |
} |
OlderNewer