UNPKG

ts-bakery

Version:

Baked dependency injection for Typescript.

17 lines (16 loc) 835 B
import DependencyBinding from '../Configuration/DependencyBinding'; import ConstructorReference from './ConstructorReference'; import IDependencyRegistration from './IDependencyRegistration'; export default class DependencyRegistration implements IDependencyRegistration { readonly constructorReference: ConstructorReference<unknown>; readonly name: string; readonly isSingle: boolean; readonly isLazy: boolean; readonly restrictions: string[]; private binding; get hasRestrictions(): boolean; constructor(constructorReference: ConstructorReference<unknown>, name: string, isSingle: boolean, isLazy: boolean, restrictions: string[]); setBinding(binding: DependencyBinding): void; matchesBinding(dependencyName: string): boolean; canBeRequestedBy(config: IDependencyRegistration): boolean; }