@carlosv2/glue
Version:
Dependency injection library that stays out of the way
15 lines • 670 B
TypeScript
import type { Buildable } from '../buildable.js';
import type { DefinitionContext, RunningContext } from '../context/index.js';
import { Maybe } from '../utils.js';
import { Service, type Tag } from '../service.js';
export declare class Factory extends Service {
private readonly symbol;
private readonly factory;
private readonly args;
constructor(symbol: Buildable, factory: Buildable, args: Buildable[], context: DefinitionContext, scope: Maybe<string>, tags: Tag[], calls: {
method: Buildable;
params: Buildable[];
}[]);
protected instantiate(context: RunningContext): Promise<unknown>;
}
//# sourceMappingURL=factory.d.ts.map