UNPKG

733 BTypeScriptView Raw
1import { DynamicModule } from '@nestjs/common';
2import { Module as ModuleClass } from '../injector/module';
3import { ModulesContainer } from '../injector/modules-container';
4import { Routes } from './interfaces';
5export declare const ROUTES: unique symbol;
6export declare const targetModulesByContainer: WeakMap<ModulesContainer, WeakSet<ModuleClass>>;
7/**
8 * @publicApi
9 */
10export declare class RouterModule {
11 private readonly modulesContainer;
12 private readonly routes;
13 constructor(modulesContainer: ModulesContainer, routes: Routes);
14 static register(routes: Routes): DynamicModule;
15 private deepCloneRoutes;
16 private initialize;
17 private registerModulePathMetadata;
18 private updateTargetModulesCache;
19}