@miracledevs/paradigm-web-di
Version:
A minimal dependency injection library for the web
13 lines (11 loc) • 345 B
text/typescript
import { ObjectType } from "./object-type";
import { DependencyLifeTime } from "./dependency-life-time";
export class DependencyDescriptor<TInstance = any>
{
constructor(
public readonly lifeTime: DependencyLifeTime,
public readonly dependencies: ObjectType[],
public instance?: TInstance)
{
}
}