typenexus
Version:
TypeNexus is a good tool for API encapsulation and management. It provides a clean and lightweight way to package TypeORM functionality, helping you build applications faster while reducing template code redundancy and type conversion work.
26 lines (22 loc) • 555 B
text/typescript
/**
* 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;
}