UNPKG

@nestjs/core

Version:

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

10 lines (9 loc) 949 B
import { ExcludeRouteMetadata } from '../router/interfaces/exclude-route-metadata.interface.js'; import type { HttpServer, Type } from '@nestjs/common'; import { type RouteInfo } from '@nestjs/common/internal'; export declare const mapToExcludeRoute: (routes: (string | RouteInfo)[]) => ExcludeRouteMetadata[]; export declare const filterMiddleware: <T extends Function | Type<any> = any>(middleware: T[], routes: RouteInfo[], httpAdapter: HttpServer) => Type<any>[]; export declare const mapToClass: <T extends Function | Type<any>>(middleware: T, excludedRoutes: ExcludeRouteMetadata[], httpAdapter: HttpServer) => Type<any>; export declare function isMiddlewareClass(middleware: any): middleware is Type<any>; export declare function assignToken(metatype: Type<any>, token?: string): Type<any>; export declare function isMiddlewareRouteExcluded(req: Record<string, any>, excludedRoutes: ExcludeRouteMetadata[], httpAdapter: HttpServer): boolean;