@tsclean/core
Version:
Plugin for API Rest Full development, based on Clean Architecture, IoC and Dependency Injection.
8 lines • 904 B
TypeScript
import { ExcludeRouteMetadata, ExcludeRouteMetadataInterface, HttpServer, RouteInfo, Type } from '../contracts';
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: ExcludeRouteMetadataInterface[], 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: ExcludeRouteMetadataInterface[], httpAdapter: HttpServer): boolean;
//# sourceMappingURL=utils.d.ts.map