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