source: node_modules/@reduxjs/toolkit/src/index.ts

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 4.9 KB
Line 
1// This must remain here so that the `mangleErrors.cjs` build script
2// does not have to import this into each source file it rewrites.
3import { formatProdErrorMessage } from './formatProdErrorMessage'
4
5export * from 'redux'
6export { freeze, original } from 'immer'
7export { createNextState, current, isDraft } from './immerImports'
8export type { Draft, WritableDraft } from 'immer'
9export { createSelector, lruMemoize } from 'reselect'
10export { createSelectorCreator, weakMapMemoize } from './reselectImports'
11export type { Selector, OutputSelector } from 'reselect'
12export {
13 createDraftSafeSelector,
14 createDraftSafeSelectorCreator,
15} from './createDraftSafeSelector'
16export type { ThunkAction, ThunkDispatch, ThunkMiddleware } from 'redux-thunk'
17
18export {
19 // js
20 configureStore,
21} from './configureStore'
22export type {
23 // types
24 ConfigureStoreOptions,
25 EnhancedStore,
26} from './configureStore'
27export type { DevToolsEnhancerOptions } from './devtoolsExtension'
28export {
29 // js
30 createAction,
31 isActionCreator,
32 isFSA as isFluxStandardAction,
33} from './createAction'
34export type {
35 // types
36 PayloadAction,
37 PayloadActionCreator,
38 ActionCreatorWithNonInferrablePayload,
39 ActionCreatorWithOptionalPayload,
40 ActionCreatorWithPayload,
41 ActionCreatorWithoutPayload,
42 ActionCreatorWithPreparedPayload,
43 PrepareAction,
44} from './createAction'
45export {
46 // js
47 createReducer,
48} from './createReducer'
49export type {
50 // types
51 Actions,
52 CaseReducer,
53 CaseReducers,
54} from './createReducer'
55export {
56 // js
57 createSlice,
58 buildCreateSlice,
59 asyncThunkCreator,
60 ReducerType,
61} from './createSlice'
62
63export type {
64 // types
65 CreateSliceOptions,
66 Slice,
67 CaseReducerActions,
68 SliceCaseReducers,
69 ValidateSliceCaseReducers,
70 CaseReducerWithPrepare,
71 ReducerCreators,
72 SliceSelectors,
73} from './createSlice'
74export type { ActionCreatorInvariantMiddlewareOptions } from './actionCreatorInvariantMiddleware'
75export { createActionCreatorInvariantMiddleware } from './actionCreatorInvariantMiddleware'
76export {
77 // js
78 createImmutableStateInvariantMiddleware,
79 isImmutableDefault,
80} from './immutableStateInvariantMiddleware'
81export type {
82 // types
83 ImmutableStateInvariantMiddlewareOptions,
84} from './immutableStateInvariantMiddleware'
85export {
86 // js
87 createSerializableStateInvariantMiddleware,
88 findNonSerializableValue,
89 isPlain,
90} from './serializableStateInvariantMiddleware'
91export type {
92 // types
93 SerializableStateInvariantMiddlewareOptions,
94} from './serializableStateInvariantMiddleware'
95export type {
96 // types
97 ActionReducerMapBuilder,
98 AsyncThunkReducers,
99} from './mapBuilders'
100export { Tuple } from './utils'
101
102export { createEntityAdapter } from './entities/create_adapter'
103export type {
104 EntityState,
105 EntityAdapter,
106 EntitySelectors,
107 EntityStateAdapter,
108 EntityId,
109 Update,
110 IdSelector,
111 Comparer,
112} from './entities/models'
113
114export {
115 createAsyncThunk,
116 unwrapResult,
117 miniSerializeError,
118} from './createAsyncThunk'
119export type {
120 AsyncThunk,
121 AsyncThunkConfig,
122 AsyncThunkDispatchConfig,
123 AsyncThunkOptions,
124 AsyncThunkAction,
125 AsyncThunkPayloadCreatorReturnValue,
126 AsyncThunkPayloadCreator,
127 GetState,
128 GetThunkAPI,
129 SerializedError,
130 CreateAsyncThunkFunction,
131} from './createAsyncThunk'
132
133export {
134 // js
135 isAllOf,
136 isAnyOf,
137 isPending,
138 isRejected,
139 isFulfilled,
140 isAsyncThunkAction,
141 isRejectedWithValue,
142} from './matchers'
143export type {
144 // types
145 ActionMatchingAllOf,
146 ActionMatchingAnyOf,
147} from './matchers'
148
149export { nanoid } from './nanoid'
150
151export type {
152 ListenerEffect,
153 ListenerMiddleware,
154 ListenerEffectAPI,
155 ListenerMiddlewareInstance,
156 CreateListenerMiddlewareOptions,
157 ListenerErrorHandler,
158 TypedStartListening,
159 TypedAddListener,
160 TypedStopListening,
161 TypedRemoveListener,
162 UnsubscribeListener,
163 UnsubscribeListenerOptions,
164 ForkedTaskExecutor,
165 ForkedTask,
166 ForkedTaskAPI,
167 AsyncTaskExecutor,
168 SyncTaskExecutor,
169 TaskCancelled,
170 TaskRejected,
171 TaskResolved,
172 TaskResult,
173} from './listenerMiddleware/index'
174export type { AnyListenerPredicate } from './listenerMiddleware/types'
175
176export {
177 createListenerMiddleware,
178 addListener,
179 removeListener,
180 clearAllListeners,
181 TaskAbortError,
182} from './listenerMiddleware/index'
183
184export type {
185 AddMiddleware,
186 DynamicDispatch,
187 DynamicMiddlewareInstance,
188 GetDispatchType as GetDispatch,
189 MiddlewareApiConfig,
190} from './dynamicMiddleware/types'
191export { createDynamicMiddleware } from './dynamicMiddleware/index'
192
193export {
194 SHOULD_AUTOBATCH,
195 prepareAutoBatched,
196 autoBatchEnhancer,
197} from './autoBatchEnhancer'
198export type { AutoBatchOptions } from './autoBatchEnhancer'
199
200export { combineSlices } from './combineSlices'
201
202export type {
203 CombinedSliceReducer,
204 WithSlice,
205 WithSlicePreloadedState,
206} from './combineSlices'
207
208export type {
209 ExtractDispatchExtensions as TSHelpersExtractDispatchExtensions,
210 SafePromise,
211} from './tsHelpers'
212
213export { formatProdErrorMessage } from './formatProdErrorMessage'
Note: See TracBrowser for help on using the repository browser.