Match-id-c20806579b42c6c6b7f7cb74d3ac0d1c74163b5e
This commit is contained in:
commit
318323f4fa
|
@ -127,7 +127,7 @@ export function bindActionCreators(actionCreators: ActionCreators, dispatch: Dis
|
||||||
return boundActionCreators;
|
return boundActionCreators;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function compose(middlewares: ReduxMiddleware[]) {
|
export function compose(...middlewares: ReduxMiddleware[]) {
|
||||||
return (store: ReduxStoreHandler, extraArgument: any) => {
|
return (store: ReduxStoreHandler, extraArgument: any) => {
|
||||||
let val;
|
let val;
|
||||||
middlewares.reverse().forEach((middleware: ReduxMiddleware, index) => {
|
middlewares.reverse().forEach((middleware: ReduxMiddleware, index) => {
|
||||||
|
|
Loading…
Reference in New Issue