Skip to content

Commit 8dbdf9c

Browse files
committed
Allow TS isolatedModules flag to be set for safer transpilation
1 parent 026221a commit 8dbdf9c

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
@@ -19,7 +19,8 @@ export type {
1919
} from './fetchBaseQuery'
2020
export { retry } from './retry'
2121
export { setupListeners } from './core/setupListeners'
22-
export { skipSelector, skipToken, SkipToken } from './core/buildSelectors'
22+
export { skipSelector, skipToken } from './core/buildSelectors'
23+
export type { SkipToken } from './core/buildSelectors'
2324
export type { CreateApi, CreateApiOptions } from './createApi'
2425
export { buildCreateApi } from './createApi'
2526
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)