Avoid TypeScript warnings

This commit is contained in:
Doug Bunting 2019-07-05 08:19:52 -07:00
parent 27ee4aa741
commit 93b1043dff
No known key found for this signature in database
GPG Key ID: EE41520987982C03
2 changed files with 3 additions and 3 deletions

View File

@ -24,8 +24,8 @@ export type KnownAction = IncrementCountAction | DecrementCountAction;
// They don't directly mutate state, but they can have external side-effects (such as loading data).
export const actionCreators = {
increment: () => <IncrementCountAction>{ type: 'INCREMENT_COUNT' },
decrement: () => <DecrementCountAction>{ type: 'DECREMENT_COUNT' }
increment: () => ({ type: 'INCREMENT_COUNT' } as IncrementCountAction),
decrement: () => ({ type: 'DECREMENT_COUNT' } as DecrementCountAction)
};
// ----------------

View File

@ -1,4 +1,4 @@
import { applyMiddleware, combineReducers, compose, createStore, Reducer } from 'redux';
import { applyMiddleware, combineReducers, compose, createStore } from 'redux';
import thunk from 'redux-thunk';
import { connectRouter, routerMiddleware } from 'connected-react-router';
import { History } from 'history';