@carlosv2/glue
Version:
Dependency injection library that stays out of the way
18 lines • 967 B
TypeScript
import type { Container } from '../container.js';
import { Dictionary } from '../utils.js';
import { Value } from '../value.js';
import { Alias } from '../alias.js';
import { Service } from '../service.js';
import { RunningContext } from '../context/index.js';
export declare class AssemblingContainer implements Container {
protected readonly parameters: Dictionary<Value>;
protected readonly aliases: Dictionary<Alias>;
protected readonly services: Dictionary<Service>;
protected readonly instances: Dictionary<Promise<unknown>>;
constructor(parameters: Dictionary<Value>, aliases: Dictionary<Alias>, services: Dictionary<Service>);
get<T = unknown>(id: string, context?: RunningContext): Promise<T>;
getParameter<T = unknown>(id: string, context?: RunningContext): Promise<T>;
findServiceIdsByTag(tag: string): string[];
static from(services: Dictionary<Service>): AssemblingContainer;
}
//# sourceMappingURL=assembling.d.ts.map