We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7910367 commit d636162Copy full SHA for d636162
store/actions/CounterAction.ts
@@ -7,7 +7,9 @@ export interface ICounterPayload {
7
}
8
9
export const CounterActions = {
10
- increment: actionCreator<ICounterPayload>("increment"),
11
- decrement: actionCreator<ICounterPayload>("decrement"),
+ // no arguments
+ increment: actionCreator("increment"),
12
+ decrement: actionCreator("decrement"),
13
+ // with arguments
14
calculate: actionCreator<ICounterPayload>("calculate"),
15
0 commit comments