Skip to content

Commit 24a371b

Browse files
committed
use export from, reorganize
1 parent 6a98107 commit 24a371b

File tree

1 file changed

+13
-34
lines changed

1 file changed

+13
-34
lines changed

src/index.ts

Lines changed: 13 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import {
1+
// types
2+
// store
3+
export {
24
Dispatch,
35
Unsubscribe,
46
Observable,
@@ -8,8 +10,8 @@ import {
810
StoreCreator,
911
StoreEnhancer
1012
} from '..'
11-
import createStore from './createStore'
12-
import {
13+
// reducers
14+
export {
1315
CombinedState,
1416
PreloadedState,
1517
Reducer,
@@ -18,14 +20,19 @@ import {
1820
ActionFromReducer,
1921
ActionFromReducersMapObject
2022
} from '..'
23+
// action creators
24+
export { ActionCreator, ActionCreatorsMapObject } from '..'
25+
// middleware
26+
export { MiddlewareAPI, Middleware } from '..'
27+
// actions
28+
export { Action, AnyAction } from '..'
29+
// functions
30+
import createStore from './createStore'
2131
import combineReducers from './combineReducers'
22-
import { ActionCreator, ActionCreatorsMapObject } from '..'
2332
import bindActionCreators from './bindActionCreators'
24-
import { MiddlewareAPI, Middleware } from '..'
2533
import applyMiddleware from './applyMiddleware'
2634
import compose from './compose'
2735
import warning from './utils/warning'
28-
import { Action, AnyAction } from '..'
2936
import __DO_NOT_USE__ActionTypes from './utils/actionTypes'
3037

3138
/*
@@ -49,34 +56,6 @@ if (
4956
}
5057

5158
export {
52-
// types
53-
// actions
54-
Action,
55-
AnyAction,
56-
// action creators
57-
ActionCreator,
58-
ActionCreatorsMapObject,
59-
// reducers
60-
CombinedState,
61-
PreloadedState,
62-
Reducer,
63-
ReducerFromReducersMapObject,
64-
StateFromReducersMapObject,
65-
ActionFromReducer,
66-
ActionFromReducersMapObject,
67-
// middleware
68-
MiddlewareAPI,
69-
Middleware,
70-
// store
71-
Dispatch,
72-
Unsubscribe,
73-
Observable,
74-
Observer,
75-
Store,
76-
DeepPartial,
77-
StoreCreator,
78-
StoreEnhancer,
79-
// things
8059
createStore,
8160
combineReducers,
8261
bindActionCreators,

0 commit comments

Comments
 (0)