UNPKG

1.41 kBTypeScriptView Raw
1import { NestContainer } from '../injector/container';
2import { InstanceWrapper } from '../injector/instance-wrapper';
3import { Module } from '../injector/module';
4import { EnhancerMetadataCacheEntry } from './interfaces/enhancer-metadata-cache-entry.interface';
5import { Entrypoint } from './interfaces/entrypoint.interface';
6import { OrphanedEnhancerDefinition } from './interfaces/extras.interface';
7import { Node } from './interfaces/node.interface';
8export declare class GraphInspector {
9 private readonly container;
10 private readonly graph;
11 private readonly enhancersMetadataCache;
12 constructor(container: NestContainer);
13 inspectModules(modules?: Map<string, Module>): void;
14 registerPartial(error: unknown): void;
15 inspectInstanceWrapper<T = any>(source: InstanceWrapper<T>, moduleRef: Module): void;
16 insertEnhancerMetadataCache(entry: EnhancerMetadataCacheEntry): void;
17 insertOrphanedEnhancer(entry: OrphanedEnhancerDefinition): void;
18 insertAttachedEnhancer(wrapper: InstanceWrapper): void;
19 insertEntrypointDefinition<T>(definition: Entrypoint<T>, parentId: string): void;
20 insertClassNode(moduleRef: Module, wrapper: InstanceWrapper, type: Exclude<Node['metadata']['type'], 'module'>): void;
21 private insertModuleNode;
22 private insertModuleToModuleEdges;
23 private insertEnhancerEdge;
24 private insertClassToClassEdge;
25 private insertClassNodes;
26}