| 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. |
| 3 |
import { formatProdErrorMessage } from '@reduxjs/toolkit' |
| 4 |
|
| 5 |
import { buildCreateApi, coreModule } from '@reduxjs/toolkit/query' |
| 6 |
import { reactHooksModule, reactHooksModuleName } from './module' |
| 7 |
|
| 8 |
export * from '@reduxjs/toolkit/query' |
| 9 |
export { ApiProvider } from './ApiProvider' |
| 10 |
|
| 11 |
const createApi = /* @__PURE__ */ buildCreateApi( |
| 12 |
coreModule(), |
| 13 |
reactHooksModule(), |
| 14 |
) |
| 15 |
|
| 16 |
export type { |
| 17 |
TypedUseMutationResult, |
| 18 |
TypedUseQueryHookResult, |
| 19 |
TypedUseQueryStateResult, |
| 20 |
TypedUseQuerySubscriptionResult, |
| 21 |
TypedLazyQueryTrigger, |
| 22 |
TypedUseLazyQuery, |
| 23 |
TypedUseMutation, |
| 24 |
TypedMutationTrigger, |
| 25 |
TypedQueryStateSelector, |
| 26 |
TypedUseQueryState, |
| 27 |
TypedUseQuery, |
| 28 |
TypedUseQuerySubscription, |
| 29 |
TypedUseLazyQuerySubscription, |
| 30 |
TypedUseQueryStateOptions, |
| 31 |
TypedUseLazyQueryStateResult, |
| 32 |
TypedUseInfiniteQuery, |
| 33 |
TypedUseInfiniteQueryHookResult, |
| 34 |
TypedUseInfiniteQueryStateResult, |
| 35 |
TypedUseInfiniteQuerySubscriptionResult, |
| 36 |
TypedUseInfiniteQueryStateOptions, |
| 37 |
TypedInfiniteQueryStateSelector, |
| 38 |
TypedUseInfiniteQuerySubscription, |
| 39 |
TypedUseInfiniteQueryState, |
| 40 |
TypedLazyInfiniteQueryTrigger, |
| 41 |
} from './buildHooks' |
| 42 |
export { UNINITIALIZED_VALUE } from './constants' |
| 43 |
export { createApi, reactHooksModule, reactHooksModuleName } |