amis-rpc-design/node_modules/@reduxjs/toolkit/dist/index.d.ts
2023-10-07 19:42:30 +08:00

40 lines
3.9 KiB
TypeScript

export * from 'redux';
export { default as createNextState, current, freeze, original, isDraft, } from 'immer';
export type { Draft } from 'immer';
export { createSelector } from 'reselect';
export type { Selector, OutputParametricSelector, OutputSelector, ParametricSelector, } from 'reselect';
export { createDraftSafeSelector } from './createDraftSafeSelector';
export type { ThunkAction, ThunkDispatch, ThunkMiddleware } from 'redux-thunk';
export { configureStore, } from './configureStore';
export type { ConfigureEnhancersCallback, ConfigureStoreOptions, EnhancedStore, } from './configureStore';
export type { DevToolsEnhancerOptions } from './devtoolsExtension';
export { createAction, getType, isAction, isActionCreator, isFSA as isFluxStandardAction, } from './createAction';
export type { PayloadAction, PayloadActionCreator, ActionCreatorWithNonInferrablePayload, ActionCreatorWithOptionalPayload, ActionCreatorWithPayload, ActionCreatorWithoutPayload, ActionCreatorWithPreparedPayload, PrepareAction, } from './createAction';
export { createReducer, } from './createReducer';
export type { Actions, CaseReducer, CaseReducers, } from './createReducer';
export { createSlice, } from './createSlice';
export type { CreateSliceOptions, Slice, CaseReducerActions, SliceCaseReducers, ValidateSliceCaseReducers, CaseReducerWithPrepare, SliceActionCreator, } from './createSlice';
export type { ActionCreatorInvariantMiddlewareOptions } from './actionCreatorInvariantMiddleware';
export { createActionCreatorInvariantMiddleware } from './actionCreatorInvariantMiddleware';
export { createImmutableStateInvariantMiddleware, isImmutableDefault, } from './immutableStateInvariantMiddleware';
export type { ImmutableStateInvariantMiddlewareOptions, } from './immutableStateInvariantMiddleware';
export { createSerializableStateInvariantMiddleware, findNonSerializableValue, isPlain, } from './serializableStateInvariantMiddleware';
export type { SerializableStateInvariantMiddlewareOptions, } from './serializableStateInvariantMiddleware';
export { getDefaultMiddleware, } from './getDefaultMiddleware';
export type { ActionReducerMapBuilder, } from './mapBuilders';
export { MiddlewareArray, EnhancerArray } from './utils';
export { createEntityAdapter } from './entities/create_adapter';
export type { Dictionary, EntityState, EntityAdapter, EntitySelectors, EntityStateAdapter, EntityId, Update, IdSelector, Comparer, } from './entities/models';
export { createAsyncThunk, unwrapResult, miniSerializeError, } from './createAsyncThunk';
export type { AsyncThunk, AsyncThunkOptions, AsyncThunkAction, AsyncThunkPayloadCreatorReturnValue, AsyncThunkPayloadCreator, SerializedError, } from './createAsyncThunk';
export { isAllOf, isAnyOf, isPending, isRejected, isFulfilled, isAsyncThunkAction, isRejectedWithValue, } from './matchers';
export type { ActionMatchingAllOf, ActionMatchingAnyOf, } from './matchers';
export { nanoid } from './nanoid';
export { default as isPlainObject } from './isPlainObject';
export type { ListenerEffect, ListenerMiddleware, ListenerEffectAPI, ListenerMiddlewareInstance, CreateListenerMiddlewareOptions, ListenerErrorHandler, TypedStartListening, TypedAddListener, TypedStopListening, TypedRemoveListener, UnsubscribeListener, UnsubscribeListenerOptions, ForkedTaskExecutor, ForkedTask, ForkedTaskAPI, AsyncTaskExecutor, SyncTaskExecutor, TaskCancelled, TaskRejected, TaskResolved, TaskResult, } from './listenerMiddleware/index';
export type { AnyListenerPredicate } from './listenerMiddleware/types';
export { createListenerMiddleware, addListener, removeListener, clearAllListeners, TaskAbortError, } from './listenerMiddleware/index';
export { SHOULD_AUTOBATCH, prepareAutoBatched, autoBatchEnhancer, } from './autoBatchEnhancer';
export type { AutoBatchOptions } from './autoBatchEnhancer';
export type { ExtractDispatchExtensions as TSHelpersExtractDispatchExtensions } from './tsHelpers';