Skip to content

Commit 92cf2a2

Browse files
committed
Fix build
1 parent 7271e83 commit 92cf2a2

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

test/typescript/enhancers.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
import { StoreEnhancer, Action, AnyAction, Reducer, createStore } from '../..'
1+
import {
2+
StoreEnhancer,
3+
Action,
4+
AnyAction,
5+
Reducer,
6+
createStore,
7+
Store
8+
} from '../..'
29

310
interface State {
411
someField: 'string'
@@ -372,9 +379,10 @@ function composedEnhancers() {
372379
return newStore
373380
}
374381

375-
const enhancedStore = createStore(reducer, createStore =>
382+
const composedEnhancer: StoreEnhancer<Ext1 & Ext2> = createStore =>
376383
enhancer2(enhancer1(createStore))
377-
)
384+
385+
const enhancedStore = createStore(reducer, composedEnhancer)
378386
enhancedStore.enhancer1
379387
enhancedStore.enhancer2
380388
// typings:expect-error

0 commit comments

Comments
 (0)