Skip to content

Commit 95c0206

Browse files
committed
Import Reducer as the Redux namespace is gone on latest version
1 parent 30a8875 commit 95c0206

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/app/containers/Cube/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ import * as THREE from 'three';
55
import { add, remove } from 'modules/world/';
66
import { IWorld, IWorldAction } from 'models/world';
77
const { connect } = require('react-redux');
8+
import { ActionCreator } from 'redux';
89

910
interface IProps {
1011
world: IWorld;
11-
add: Redux.ActionCreator<IWorldAction>;
12-
remove: Redux.ActionCreator<IWorldAction>;
12+
add: ActionCreator<IWorldAction>;
13+
remove: ActionCreator<IWorldAction>;
1314
}
1415

1516
@connect(

src/app/containers/Sphere/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ import * as THREE from 'three';
77
import { add, remove } from 'modules/world/';
88
import { IWorld, IWorldAction } from 'models/world';
99
const { connect } = require('react-redux');
10+
import { ActionCreator } from 'redux';
1011

1112
interface IProps {
1213
world: IWorld;
13-
add: Redux.ActionCreator<IWorldAction>;
14-
remove: Redux.ActionCreator<IWorldAction>;
14+
add: ActionCreator<IWorldAction>;
15+
remove: ActionCreator<IWorldAction>;
1516
}
1617

1718
@connect(

src/app/redux/store.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
const appConfig = require('../../../config/main');
2-
import { createStore, applyMiddleware, compose } from 'redux';
2+
import { createStore, applyMiddleware, compose, Middleware, Store } from 'redux';
33
import { routerMiddleware } from 'react-router-redux';
44
import thunk from 'redux-thunk';
55
import rootReducer from './reducers';
66
import { IStore } from './IStore';
77
import { createLogger } from 'redux-logger';
88

9-
export function configureStore(history, initialState?: IStore): Redux.Store<{}> {
9+
export function configureStore(history, initialState?: IStore): Store<{}> {
1010

11-
const middlewares: Redux.Middleware[] = [
11+
const middlewares: Middleware[] = [
1212
routerMiddleware(history),
1313
thunk
1414
];

0 commit comments

Comments
 (0)