UNPKG

co-compose

Version:

AdonisJS and Koa style middleware layer with ability to run parallel middleware

19 lines (18 loc) 411 B
import { Runnable } from './Runnable'; /** * Exposes the API to register middleware and later execute * them using the runner. */ export declare class Middleware { private list; /** * Register an array of middleware to executed * later. */ register(list: any[]): this; /** * Returns an instance of runner to execute * the middleware */ runner(): Runnable; }