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 9e5f06b commit 00fee00Copy full SHA for 00fee00
redux-actions/redux-actions-tests.ts
@@ -24,14 +24,14 @@ const action: ReduxActions.Action = incrementAction(42);
24
25
let state: number;
26
27
-const actionHandler = ReduxActions.handleAction(
+const actionHandler = ReduxActions.handleAction<number>(
28
'INCREMENT',
29
(state: number, action: ReduxActions.Action) => state + 1
30
);
31
state = actionHandler(0, { type: 'INCREMENT' });
32
33
34
-const actionHandlerWithReduceMap = ReduxActions.handleAction(
+const actionHandlerWithReduceMap = ReduxActions.handleAction<number>(
35
'INCREMENT_BY', {
36
next(state: number, action: ReduxActions.Action) {
37
return state + action.payload;
0 commit comments