Skip to content

Commit aa7e950

Browse files
cellogtimdorr
authored andcommitted
use new reducer types from types/reducers.ts, store types from types/store.ts (reduxjs#3548)
* use new store types from types/store.ts * use new reducer types from types/reducers.ts
1 parent 0b421c7 commit aa7e950

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/applyMiddleware.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import compose from './compose'
2-
import { StoreEnhancer, StoreCreator, Reducer, Dispatch } from '..'
3-
import { AnyAction } from './types/actions'
42
import { Middleware, MiddlewareAPI } from './types/middleware'
3+
import { AnyAction } from './types/actions'
4+
import { StoreEnhancer, StoreCreator, Dispatch } from './types/store'
5+
import { Reducer } from './types/reducers'
56

67
/**
78
* Creates a store enhancer that applies middleware to the dispatch method

src/bindActionCreators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Dispatch } from '..'
1+
import { Dispatch } from './types/store'
22
import {
33
AnyAction,
44
ActionCreator,

src/createStore.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import $$observable from 'symbol-observable'
22

33
import {
44
Store,
5-
Reducer,
65
PreloadedState,
76
StoreEnhancer,
87
Dispatch,
98
Observer
10-
} from '..'
9+
} from './types/store'
1110
import { Action } from './types/actions'
11+
import { Reducer } from './types/reducers'
1212
import ActionTypes from './utils/actionTypes'
1313
import isPlainObject from './utils/isPlainObject'
1414

0 commit comments

Comments
 (0)