UNPKG

@waves/node-state

Version:
7 lines (6 loc) 337 B
/** * `middlewareWithContext` is variadic and takes middlewares as input. * It returns a variadic function which is invoked with context(s) and then executes * the middleware, currently `left-to-right`, returning a new `async` function. */ export declare const middlewareWithContext: (...mw: any) => (...args: any) => Promise<void>;