From 867d070263e287b55842b5c70229952ea5552c95 Mon Sep 17 00:00:00 2001 From: SteveSandersonMS Date: Wed, 18 Jan 2017 19:14:17 +0000 Subject: [PATCH] Remove unused references to ThunkAction. Fixes a build error since @types/redux-thunk 2.2.0 removes the ThunkAction export. --- templates/ReactReduxSpa/ClientApp/store/Counter.ts | 2 +- templates/ReactReduxSpa/ClientApp/store/WeatherForecasts.ts | 2 +- templates/ReactReduxSpa/package.json | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/templates/ReactReduxSpa/ClientApp/store/Counter.ts b/templates/ReactReduxSpa/ClientApp/store/Counter.ts index 18284c0..baa3206 100644 --- a/templates/ReactReduxSpa/ClientApp/store/Counter.ts +++ b/templates/ReactReduxSpa/ClientApp/store/Counter.ts @@ -1,4 +1,4 @@ -import { Action, Reducer, ThunkAction } from 'redux'; +import { Action, Reducer } from 'redux'; // ----------------- // STATE - This defines the type of data maintained in the Redux store. diff --git a/templates/ReactReduxSpa/ClientApp/store/WeatherForecasts.ts b/templates/ReactReduxSpa/ClientApp/store/WeatherForecasts.ts index 9631ccd..1f7bdfd 100644 --- a/templates/ReactReduxSpa/ClientApp/store/WeatherForecasts.ts +++ b/templates/ReactReduxSpa/ClientApp/store/WeatherForecasts.ts @@ -1,5 +1,5 @@ import { fetch, addTask } from 'domain-task'; -import { Action, Reducer, ThunkAction, ActionCreator } from 'redux'; +import { Action, Reducer, ActionCreator } from 'redux'; import { AppThunkAction } from './'; // ----------------- diff --git a/templates/ReactReduxSpa/package.json b/templates/ReactReduxSpa/package.json index 551c8d9..11aef6f 100644 --- a/templates/ReactReduxSpa/package.json +++ b/templates/ReactReduxSpa/package.json @@ -9,7 +9,6 @@ "@types/react-router": "^2.0.30", "@types/react-router-redux": "^4.0.30", "@types/redux": "3.5.27", - "@types/redux-thunk": "^2.1.28", "@types/source-map": "^0.1.28", "@types/uglify-js": "^2.0.27", "@types/webpack": "^1.12.35", @@ -37,7 +36,7 @@ "react-router": "^2.8.1", "react-router-redux": "^4.0.6", "redux": "^3.6.0", - "redux-thunk": "^2.1.0", + "redux-thunk": "^2.2.0", "style-loader": "^0.13.0", "ts-loader": "^0.8.1", "typescript": "^2.0.3",