Avoid TypeScript warnings
This commit is contained in:
parent
27ee4aa741
commit
93b1043dff
|
|
@ -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).
|
// They don't directly mutate state, but they can have external side-effects (such as loading data).
|
||||||
|
|
||||||
export const actionCreators = {
|
export const actionCreators = {
|
||||||
increment: () => <IncrementCountAction>{ type: 'INCREMENT_COUNT' },
|
increment: () => ({ type: 'INCREMENT_COUNT' } as IncrementCountAction),
|
||||||
decrement: () => <DecrementCountAction>{ type: 'DECREMENT_COUNT' }
|
decrement: () => ({ type: 'DECREMENT_COUNT' } as DecrementCountAction)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------
|
// ----------------
|
||||||
|
|
|
||||||
|
|
@ -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 thunk from 'redux-thunk';
|
||||||
import { connectRouter, routerMiddleware } from 'connected-react-router';
|
import { connectRouter, routerMiddleware } from 'connected-react-router';
|
||||||
import { History } from 'history';
|
import { History } from 'history';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue