|
1 | | -export { combineReducers, compose } from 'redux' |
2 | | -export { default as createNextState } from 'immer' |
3 | | -export { default as createSelector } from 'selectorator' |
4 | | - |
5 | | -export { configureStore, getDefaultMiddleware } from './configureStore' |
6 | | -export { createAction, getType } from './createAction' |
7 | | -export { createReducer } from './createReducer' |
8 | | -export { createSlice } from './createSlice' |
9 | | -export { |
10 | | - default as createSerializableStateInvariantMiddleware, |
11 | | - isPlain |
12 | | -} from './serializableStateInvariantMiddleware' |
13 | | - |
14 | | -// Unfortunately, Babel's TypeScript plugin doesn't let us re-export |
15 | | -// types using the `export { ... } from` syntax. Because it compiles |
16 | | -// modules, independently, it has no way of knowing whether an identifier |
17 | | -// refers to a type or value, and thus cannot strip the type re-exports |
18 | | -// out of the generated JS. |
19 | | -// |
20 | | -// https://github.com/babel/babel/issues/8361 |
21 | | -// |
22 | | -// As a workaround, the root of this repository contains an `index.d.ts` |
23 | | -// that contains all type re-exports. Whenever adding a new public function |
24 | | -// or type, remember to export it in `index.d.ts` as well. |
| 1 | +export * from './configureStore' |
| 2 | +export * from './createAction' |
| 3 | +export * from './createReducer' |
| 4 | +export * from './createSlice' |
| 5 | +export * from './serializableStateInvariantMiddleware' |
0 commit comments