UNPKG

@nodeboot/di

Version:

Dependency Injection plugin for Node-Boot

13 lines 664 B
import { Abstract, Newable } from "../ioc"; import { Token } from "typedi"; export declare const REQUIRES_FIELD_INJECTION_KEY = "custom:requiresFieldInjection"; /** * Injects a service/component into a class property or constructor parameter. */ export declare function Inject(): Function; export declare function Inject(typeFn: Newable<unknown>): Function; export declare function Inject(abstractType: Abstract<unknown>): Function; export declare function Inject(serviceName?: string): Function; export declare function Inject(symbolValue?: symbol): Function; export declare function Inject(token: Token<unknown>): Function; //# sourceMappingURL=Inject.d.ts.map