Skip to content

Commit 6644bc0

Browse files
eric-crowellmarkerikson
authored andcommitted
fix(RTKQuery): Fixed issue with coreModuleName symbol portability when exporting declarations in a typescript project
1 parent be5436d commit 6644bc0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/toolkit/src/query/core/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ import { coreModule, coreModuleName } from './module'
33

44
const createApi = /* @__PURE__ */ buildCreateApi(coreModule())
55

6-
export { createApi, coreModule }
6+
export { createApi, coreModule, coreModuleName }

packages/toolkit/src/query/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export type { CreateApi, CreateApiOptions } from './createApi'
4343
export { buildCreateApi } from './createApi'
4444
export { fakeBaseQuery } from './fakeBaseQuery'
4545
export { copyWithStructuralSharing } from './utils/copyWithStructuralSharing'
46-
export { createApi, coreModule } from './core'
46+
export { createApi, coreModule, coreModuleName } from './core'
4747
export type {
4848
ApiEndpointMutation,
4949
ApiEndpointQuery,

packages/toolkit/src/query/react/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ export type {
1515
TypedUseQuerySubscriptionResult,
1616
TypedUseMutationResult,
1717
} from './buildHooks'
18-
export { createApi, reactHooksModule }
18+
export { createApi, reactHooksModule, reactHooksModuleName }

0 commit comments

Comments
 (0)