UNPKG

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.

30 lines (29 loc) 892 B
import { MiddlewareMetadataArgs } from './args/MiddlewareMetadataArgs.js'; import { ExpressMiddlewareInterface } from '../DriverOptions.js'; import { ExpressErrorMiddlewareInterface } from '../DriverOptions.js'; /** * Middleware metadata. */ export declare class MiddlewareMetadata { /** * Indicates if this middleware is global, thous applied to all routes. */ global: boolean; /** * Object class of the middleware class. */ target: Function; /** * Execution priority of the middleware. */ priority: number; /** * Indicates if middleware must be executed after routing action is executed. */ type: 'before' | 'after'; constructor(args: MiddlewareMetadataArgs); /** * Gets middleware instance from the container. */ get instance(): ExpressMiddlewareInterface | ExpressErrorMiddlewareInterface; }