forked from reduxjs/redux
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.ts
50 lines (48 loc) · 1.24 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// functions
import { createStore, legacy_createStore } from './createStore'
import combineReducers from './combineReducers'
import bindActionCreators from './bindActionCreators'
import applyMiddleware from './applyMiddleware'
import compose from './compose'
import isAction from './utils/isAction'
import isPlainObject from './utils/isPlainObject'
import __DO_NOT_USE__ActionTypes from './utils/actionTypes'
// types
// store
export type {
Dispatch,
Unsubscribe,
Observable,
Observer,
Store,
StoreCreator,
StoreEnhancer,
StoreEnhancerStoreCreator
} from './types/store'
// reducers
export type {
Reducer,
ReducersMapObject,
StateFromReducersMapObject,
ReducerFromReducersMapObject,
ActionFromReducer,
ActionFromReducersMapObject,
PreloadedStateShapeFromReducersMapObject
} from './types/reducers'
// action creators
export type { ActionCreator, ActionCreatorsMapObject } from './types/actions'
// middleware
export type { MiddlewareAPI, Middleware } from './types/middleware'
// actions
export type { Action, UnknownAction, AnyAction } from './types/actions'
export {
createStore,
legacy_createStore,
combineReducers,
bindActionCreators,
applyMiddleware,
compose,
isAction,
isPlainObject,
__DO_NOT_USE__ActionTypes
}