Match-id-c20806579b42c6c6b7f7cb74d3ac0d1c74163b5e

This commit is contained in:
* 2022-09-20 20:12:58 +08:00 committed by *
commit 318323f4fa
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) => {