Skip to content

Commit c4d1527

Browse files
committed
Fix TS issue with Redux 5 alpha
1 parent cd5265b commit c4d1527

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/toolkit/scripts/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ async function bundle(options: BuildOptions & EntryPointOptions) {
209209
],
210210
})
211211

212-
for (const chunk of result.outputFiles) {
212+
for (const chunk of result.outputFiles!) {
213213
const esVersion =
214214
target in esVersionMappings
215215
? esVersionMappings[target]
@@ -252,7 +252,7 @@ async function bundle(options: BuildOptions & EntryPointOptions) {
252252
toplevel: true,
253253
}
254254
)
255-
code = transformResult.code
255+
code = transformResult.code!
256256
mapping = transformResult.map as RawSourceMap
257257
}
258258

packages/toolkit/src/devtoolsExtension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ type Compose = typeof compose
220220

221221
interface ComposeWithDevTools {
222222
(options: DevToolsEnhancerOptions): Compose
223-
<StoreExt>(...funcs: StoreEnhancer<StoreExt>[]): StoreEnhancer<StoreExt>
223+
<StoreExt extends {}>(
224+
...funcs: StoreEnhancer<StoreExt>[]
225+
): StoreEnhancer<StoreExt>
224226
}
225227

226228
/**

0 commit comments

Comments
 (0)