UNPKG

routing-controllers

Version:

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

23 lines (22 loc) 586 B
/** * Metadata used to store registered middlewares. */ export interface UseMetadataArgs { /** * Object class of this "use". */ target: Function; /** * Method to which this "use" is applied. * If method is not given it means "use" is used on the controller. Then "use" applied to all controller's actions. */ method?: string; /** * Middleware to be executed for this "use". */ middleware: Function; /** * Indicates if middleware must be executed after routing action is executed. */ afterAction: boolean; }