UNPKG

@launchtray/tsyringe-async

Version:

Lightweight dependency injection container for JavaScript/TypeScript, with asynchronous resolution

10 lines (9 loc) 439 B
import { DependencyContainer } from "../types"; /** * Method decorator factory that results in the async method it is applied to being called * * @return {Function} The method decorator */ declare function initializer(): (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => any; export declare function callInitializers(container: DependencyContainer, object: any): Promise<void>; export default initializer;