From 00fee00fb40152310d1b205f4f8eed00d81ee983 Mon Sep 17 00:00:00 2001 From: Jack Hsu Date: Tue, 15 Sep 2015 01:31:51 -0400 Subject: [PATCH] adds missing generic type for handleAction test --- redux-actions/redux-actions-tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redux-actions/redux-actions-tests.ts b/redux-actions/redux-actions-tests.ts index 53305a2c9..918bfcf17 100644 --- a/redux-actions/redux-actions-tests.ts +++ b/redux-actions/redux-actions-tests.ts @@ -24,14 +24,14 @@ const action: ReduxActions.Action = incrementAction(42); let state: number; -const actionHandler = ReduxActions.handleAction( +const actionHandler = ReduxActions.handleAction( 'INCREMENT', (state: number, action: ReduxActions.Action) => state + 1 ); state = actionHandler(0, { type: 'INCREMENT' }); -const actionHandlerWithReduceMap = ReduxActions.handleAction( +const actionHandlerWithReduceMap = ReduxActions.handleAction( 'INCREMENT_BY', { next(state: number, action: ReduxActions.Action) { return state + action.payload;