UNPKG

2.91 kBPlain TextView Raw
1import { enableES5 } from 'immer'
2export * from 'redux'
3export {
4 default as createNextState,
5 Draft,
6 current,
7 freeze,
8 original,
9 isDraft
10} from 'immer'
11export {
12 createSelector,
13 Selector,
14 OutputParametricSelector,
15 OutputSelector,
16 ParametricSelector
17} from 'reselect'
18export { createDraftSafeSelector } from './createDraftSafeSelector'
19export { ThunkAction, ThunkDispatch } from 'redux-thunk'
20
21// We deliberately enable Immer's ES5 support, on the grounds that
22// we assume RTK will be used with React Native and other Proxy-less
23// environments. In addition, that's how Immer 4 behaved, and since
24// we want to ship this in an RTK minor, we should keep the same behavior.
25enableES5()
26
27export {
28 // js
29 configureStore,
30 // types
31 ConfigureEnhancersCallback,
32 ConfigureStoreOptions,
33 EnhancedStore
34} from './configureStore'
35export {
36 // js
37 createAction,
38 getType,
39 // types
40 PayloadAction,
41 PayloadActionCreator,
42 ActionCreatorWithNonInferrablePayload,
43 ActionCreatorWithOptionalPayload,
44 ActionCreatorWithPayload,
45 ActionCreatorWithoutPayload,
46 ActionCreatorWithPreparedPayload,
47 PrepareAction
48} from './createAction'
49export {
50 // js
51 createReducer,
52 // types
53 Actions,
54 CaseReducer,
55 CaseReducers
56} from './createReducer'
57export {
58 // js
59 createSlice,
60 // types
61 CreateSliceOptions,
62 Slice,
63 CaseReducerActions,
64 SliceCaseReducers,
65 ValidateSliceCaseReducers,
66 CaseReducerWithPrepare,
67 SliceActionCreator
68} from './createSlice'
69export {
70 // js
71 createImmutableStateInvariantMiddleware,
72 isImmutableDefault,
73 // types
74 ImmutableStateInvariantMiddlewareOptions
75} from './immutableStateInvariantMiddleware'
76export {
77 // js
78 createSerializableStateInvariantMiddleware,
79 findNonSerializableValue,
80 isPlain,
81 // types
82 SerializableStateInvariantMiddlewareOptions
83} from './serializableStateInvariantMiddleware'
84export {
85 // js
86 getDefaultMiddleware
87} from './getDefaultMiddleware'
88export {
89 // types
90 ActionReducerMapBuilder
91} from './mapBuilders'
92export { MiddlewareArray } from './utils'
93
94export { createEntityAdapter } from './entities/create_adapter'
95export {
96 Dictionary,
97 EntityState,
98 EntityAdapter,
99 EntitySelectors,
100 EntityStateAdapter,
101 EntityId,
102 Update,
103 IdSelector,
104 Comparer
105} from './entities/models'
106
107export {
108 AsyncThunk,
109 AsyncThunkAction,
110 AsyncThunkPayloadCreatorReturnValue,
111 AsyncThunkPayloadCreator,
112 createAsyncThunk,
113 unwrapResult,
114 SerializedError
115} from './createAsyncThunk'
116
117export {
118 // js
119 isAllOf,
120 isAnyOf,
121 isPending,
122 isRejected,
123 isFulfilled,
124 isAsyncThunkAction,
125 isRejectedWithValue,
126 // types
127 ActionMatchingAllOf,
128 ActionMatchingAnyOf
129} from './matchers'
130
131export { nanoid } from './nanoid'
132
133export { default as isPlainObject } from './isPlainObject'