UNPKG

1.07 kBTypeScriptView Raw
1import { Logger, LoggerService } from '@nestjs/common';
2import { GraphInspector } from '../inspector/graph-inspector';
3import { NestContainer } from './container';
4import { Injector } from './injector';
5import { Module } from './module';
6export declare class InstanceLoader<TInjector extends Injector = Injector> {
7 protected readonly container: NestContainer;
8 protected readonly injector: TInjector;
9 protected readonly graphInspector: GraphInspector;
10 private logger;
11 constructor(container: NestContainer, injector: TInjector, graphInspector: GraphInspector, logger?: LoggerService);
12 setLogger(logger: Logger): void;
13 createInstancesOfDependencies(modules?: Map<string, Module>): Promise<void>;
14 private createPrototypes;
15 private createInstances;
16 private createPrototypesOfProviders;
17 private createInstancesOfProviders;
18 private createPrototypesOfControllers;
19 private createInstancesOfControllers;
20 private createPrototypesOfInjectables;
21 private createInstancesOfInjectables;
22 private isModuleWhitelisted;
23}