Update ReactRedux template dependencies

This commit is contained in:
Steve Sanderson
2017-07-07 12:08:01 +01:00
parent 2135c30d66
commit 58145d33e3
3 changed files with 709 additions and 96 deletions

View File

@@ -62,7 +62,8 @@ export const actionCreators = {
const unloadedState: WeatherForecastsState = { startDateIndex: null, forecasts: [], isLoading: false };
export const reducer: Reducer<WeatherForecastsState> = (state: WeatherForecastsState, action: KnownAction) => {
export const reducer: Reducer<WeatherForecastsState> = (state: WeatherForecastsState, incomingAction: Action) => {
const action = incomingAction as KnownAction;
switch (action.type) {
case 'REQUEST_WEATHER_FORECASTS':
return {