Match-id-aae302403197a37423a9f9af9cb925b99c23696e

This commit is contained in:
* 2022-09-14 22:08:37 +08:00 committed by *
commit 1bfbb41b7c
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) => {