diff --git a/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/ClientApp/src/store/Counter.ts b/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/ClientApp/src/store/Counter.ts index 8b9a29989d45901d9a847bfbfec1818f837c2bdf..8a529b095437c81cb1a58f4b580b5153963c5b00 100644 --- a/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/ClientApp/src/store/Counter.ts +++ b/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/ClientApp/src/store/Counter.ts @@ -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) }; // ---------------- diff --git a/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/ClientApp/src/store/configureStore.ts b/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/ClientApp/src/store/configureStore.ts index 06928a6241e351ec3c216281556bce8fef9f9fc1..68c74c589d64bbdcc8461cc03d5030aaa0be2b5c 100644 --- a/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/ClientApp/src/store/configureStore.ts +++ b/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/ClientApp/src/store/configureStore.ts @@ -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';