Match-id-0c4b6d0fb66f9c58533baea757dfb550720feb91

This commit is contained in:
* 2022-09-14 22:03:43 +08:00 committed by *
parent 7595cc78d0
commit 5f3f527cc2
1 changed files with 1 additions and 1 deletions

View File

@ -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) => {