export default function applyMiddleware()

in src/applyMiddleware.ts [6:13]


export default function applyMiddleware(...middleware: Middleware[]) {
    var next: DispatchFunction = finalDispatch;
    for (var i = middleware.length - 1; i >= 0; i--) {
        next = applyNextMiddleware(middleware[i], next);
    }

    getGlobalContext().dispatchWithMiddleware = next;
}