@tsclean/core
Version:
Plugin for API Rest Full development, based on Clean Architecture, IoC and Dependency Injection.
24 lines • 881 B
TypeScript
import { ContainerIoC } from './container';
import { InstanceWrapper } from './instance-wrapper';
import { InstanceTokenType } from '../../types';
import { InjectionToken } from '../../contracts/injection-token';
export interface InstanceLink<T = any> {
token: InstanceTokenType;
wrapperRef: InstanceWrapper<T>;
collection: Map<any, InstanceWrapper>;
moduleId: string;
}
export declare class InstanceLinksHost {
private readonly container;
private readonly instanceLinks;
constructor(container: ContainerIoC);
get<T = any>(token: InjectionToken): InstanceLink<T>;
get<T = any>(token: InjectionToken, options?: {
moduleId?: string;
each?: boolean;
}): InstanceLink<T> | Array<InstanceLink<T>>;
private initialize;
private addLink;
private getInstanceNameByToken;
}
//# sourceMappingURL=instance-links-host.d.ts.map