Skip to content

Commit 00fee00

Browse files
committed
adds missing generic type for handleAction test
1 parent 9e5f06b commit 00fee00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redux-actions/redux-actions-tests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ const action: ReduxActions.Action = incrementAction(42);
2424

2525
let state: number;
2626

27-
const actionHandler = ReduxActions.handleAction(
27+
const actionHandler = ReduxActions.handleAction<number>(
2828
'INCREMENT',
2929
(state: number, action: ReduxActions.Action) => state + 1
3030
);
3131
state = actionHandler(0, { type: 'INCREMENT' });
3232

3333

34-
const actionHandlerWithReduceMap = ReduxActions.handleAction(
34+
const actionHandlerWithReduceMap = ReduxActions.handleAction<number>(
3535
'INCREMENT_BY', {
3636
next(state: number, action: ReduxActions.Action) {
3737
return state + action.payload;

0 commit comments

Comments
 (0)