Skip to content

Commit 93b1043

Browse files
committed
Avoid TypeScript warnings
1 parent 27ee4aa commit 93b1043

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ProjectTemplates/Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/ClientApp/src/store/Counter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export type KnownAction = IncrementCountAction | DecrementCountAction;
2424
// They don't directly mutate state, but they can have external side-effects (such as loading data).
2525

2626
export const actionCreators = {
27-
increment: () => <IncrementCountAction>{ type: 'INCREMENT_COUNT' },
28-
decrement: () => <DecrementCountAction>{ type: 'DECREMENT_COUNT' }
27+
increment: () => ({ type: 'INCREMENT_COUNT' } as IncrementCountAction),
28+
decrement: () => ({ type: 'DECREMENT_COUNT' } as DecrementCountAction)
2929
};
3030

3131
// ----------------

src/ProjectTemplates/Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/ClientApp/src/store/configureStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { applyMiddleware, combineReducers, compose, createStore, Reducer } from 'redux';
1+
import { applyMiddleware, combineReducers, compose, createStore } from 'redux';
22
import thunk from 'redux-thunk';
33
import { connectRouter, routerMiddleware } from 'connected-react-router';
44
import { History } from 'history';

0 commit comments

Comments
 (0)