Skip to content

Commit a72bee9

Browse files
authored
Merge pull request #2911 from matmannion/isolated-modules
2 parents 67a69e8 + 8dbdf9c commit a72bee9

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

packages/toolkit/src/entities/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export { createEntityAdapter } from './create_adapter'
2-
export {
2+
export type {
33
Dictionary,
44
EntityState,
55
EntityAdapter,

packages/toolkit/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,5 +189,5 @@ export {
189189
SHOULD_AUTOBATCH,
190190
prepareAutoBatched,
191191
autoBatchEnhancer,
192-
AutoBatchOptions,
193192
} from './autoBatchEnhancer'
193+
export type { AutoBatchOptions } from './autoBatchEnhancer'

packages/toolkit/src/query/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export type {
2020
} from './fetchBaseQuery'
2121
export { retry } from './retry'
2222
export { setupListeners } from './core/setupListeners'
23-
export { skipSelector, skipToken, SkipToken } from './core/buildSelectors'
23+
export { skipSelector, skipToken } from './core/buildSelectors'
24+
export type { SkipToken } from './core/buildSelectors'
2425
export type { CreateApi, CreateApiOptions } from './createApi'
2526
export { buildCreateApi } from './createApi'
2627
export { fakeBaseQuery } from './fakeBaseQuery'

packages/toolkit/tsconfig.base.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
"skipLibCheck": true,
2727
// error out if import and file system have a casing mismatch. Recommended by TS
2828
"forceConsistentCasingInFileNames": true,
29+
// ensure that each file can be safely transpiled by babel (etc.) without relying on other imports
30+
"isolatedModules": true,
2931
"downlevelIteration": false,
3032
"allowSyntheticDefaultImports": true,
3133
"emitDeclarationOnly": true,

0 commit comments

Comments
 (0)