UNPKG

routing-controllers

Version:

Create structured, declarative and beautifully organized class-based controllers with heavy decorators usage for Express / Koa using TypeScript.

11 lines (10 loc) 278 B
/** * Used to register middlewares. * This signature is used for koa middlewares. */ export interface KoaMiddlewareInterface { /** * Called before controller action is being executed. */ use(context: any, next: (err?: any) => Promise<any>): Promise<any>; }