Skip to content

Commit a697971

Browse files
committed
fix(RTKQuery): Fixed issue with coreModuleName symbol portability when exporting declarations in a typescript project
1 parent 32e9081 commit a697971

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ export type {
44
BaseQueryApi,
55
BaseQueryEnhancer,
66
BaseQueryFn,
7+
QueryReturnValue,
78
} from './baseQueryTypes'
89
export type {
910
EndpointDefinitions,
1011
EndpointDefinition,
12+
EndpointBuilder,
1113
QueryDefinition,
14+
QueryArgFrom,
1215
MutationDefinition,
1316
TagDescription,
1417
} from './endpointDefinitions'
@@ -26,5 +29,6 @@ export type { CreateApi, CreateApiOptions } from './createApi'
2629
export { buildCreateApi } from './createApi'
2730
export { fakeBaseQuery } from './fakeBaseQuery'
2831
export { copyWithStructuralSharing } from './utils/copyWithStructuralSharing'
29-
export { createApi, coreModule } from './core'
32+
export { createApi, coreModule, coreModuleName } from './core'
3033
export { defaultSerializeQueryArgs } from './defaultSerializeQueryArgs'
34+
export * from './tsHelpers';

0 commit comments

Comments
 (0)