@@ -159,9 +159,9 @@ const _anyMiddleware: any = () => () => () => {}
159159 } )
160160
161161 {
162- type SomePropertyStoreEnhancer = StoreEnhancer < { someProperty : string } >
163-
164- const somePropertyStoreEnhancer : SomePropertyStoreEnhancer = ( next ) => {
162+ const somePropertyStoreEnhancer : StoreEnhancer < { someProperty : string } > = (
163+ next
164+ ) => {
165165 return ( reducer , preloadedState ) => {
166166 return {
167167 ...next ( reducer , preloadedState ) ,
@@ -170,13 +170,9 @@ const _anyMiddleware: any = () => () => () => {}
170170 }
171171 }
172172
173- type AnotherPropertyStoreEnhancer = StoreEnhancer < {
173+ const anotherPropertyStoreEnhancer : StoreEnhancer < {
174174 anotherProperty : number
175- } >
176-
177- const anotherPropertyStoreEnhancer : AnotherPropertyStoreEnhancer = (
178- next
179- ) => {
175+ } > = ( next ) => {
180176 return ( reducer , preloadedState ) => {
181177 return {
182178 ...next ( reducer , preloadedState ) ,
@@ -187,7 +183,10 @@ const _anyMiddleware: any = () => () => () => {}
187183
188184 const store = configureStore ( {
189185 reducer : ( ) => 0 ,
190- enhancers : [ somePropertyStoreEnhancer , anotherPropertyStoreEnhancer ] ,
186+ enhancers : [
187+ somePropertyStoreEnhancer ,
188+ anotherPropertyStoreEnhancer ,
189+ ] as const ,
191190 } )
192191
193192 expectType < Dispatch & ThunkDispatch < number , undefined , AnyAction > > (
0 commit comments