UNPKG

1.36 kBTypeScriptView Raw
1import { HttpServer } from '@nestjs/common/interfaces';
2import { Controller } from '@nestjs/common/interfaces/controllers/controller.interface';
3import { ApplicationConfig } from '../application-config';
4import { NestContainer } from '../injector/container';
5import { Injector } from '../injector/injector';
6import { InstanceWrapper } from '../injector/instance-wrapper';
7import { Resolver } from './interfaces/resolver.interface';
8export declare class RoutesResolver implements Resolver {
9 private readonly container;
10 private readonly applicationConfig;
11 private readonly injector;
12 private readonly logger;
13 private readonly routerProxy;
14 private readonly routePathFactory;
15 private readonly routerExceptionsFilter;
16 private readonly routerExplorer;
17 constructor(container: NestContainer, applicationConfig: ApplicationConfig, injector: Injector);
18 resolve<T extends HttpServer>(applicationRef: T, globalPrefix: string): void;
19 registerRouters(routes: Map<string | symbol | Function, InstanceWrapper<Controller>>, moduleName: string, globalPrefix: string, modulePath: string, applicationRef: HttpServer): void;
20 registerNotFoundHandler(): void;
21 registerExceptionHandler(): void;
22 mapExternalException(err: any): any;
23 private getModulePathMetadata;
24 private getHostMetadata;
25 private getVersionMetadata;
26}