UNPKG

622 BTypeScriptView Raw
1import { NestContainer } from './container';
2import { InstanceWrapper } from './instance-wrapper';
3import { InstanceToken } from './module';
4export interface InstanceLink<T = any> {
5 token: InstanceToken;
6 wrapperRef: InstanceWrapper<T>;
7 collection: Map<any, InstanceWrapper>;
8 moduleId: string;
9}
10export declare class InstanceLinksHost {
11 private readonly container;
12 private readonly instanceLinks;
13 constructor(container: NestContainer);
14 get<T = any>(token: InstanceToken, moduleId?: string): InstanceLink<T>;
15 private initialize;
16 private addLink;
17 private getInstanceNameByToken;
18}