UNPKG

@nestjs/core

Version:

Nest - modern, fast, powerful node.js web framework (@core)

11 lines (10 loc) 781 B
import { HttpServer, RouteInfo, Type } from '@nestjs/common/interfaces'; declare type RouteInfoRegex = RouteInfo & { regex: RegExp; }; export declare const filterMiddleware: <T extends Function | Type<any> = any>(middleware: T[], excludedRoutes: RouteInfo[], httpAdapter: HttpServer<any, any>) => Type<any>[]; export declare const mapToClass: <T extends Function | Type<any>>(middleware: T, excludedRoutes: RouteInfoRegex[], httpAdapter: HttpServer<any, any>) => Type<any>; export declare function isClass(middleware: any): middleware is Type<any>; export declare function assignToken(metatype: Type<any>, token?: any): Type<any>; export declare function isRouteExcluded(req: Record<string, any>, excludedRoutes: RouteInfoRegex[], httpAdapter: HttpServer): boolean; export {};