Skip to content

Commit d636162

Browse files
author
username
committed
refactor: remove unnecessary generics for action of no arguments
1 parent 7910367 commit d636162

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

store/actions/CounterAction.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ export interface ICounterPayload {
77
}
88

99
export const CounterActions = {
10-
increment: actionCreator<ICounterPayload>("increment"),
11-
decrement: actionCreator<ICounterPayload>("decrement"),
10+
// no arguments
11+
increment: actionCreator("increment"),
12+
decrement: actionCreator("decrement"),
13+
// with arguments
1214
calculate: actionCreator<ICounterPayload>("calculate"),
1315
}

0 commit comments

Comments
 (0)