@launchtray/tsyringe-async
Version:
Lightweight dependency injection container for JavaScript/TypeScript, with asynchronous resolution
5 lines (4 loc) • 371 B
TypeScript
import { ParamInfo } from "./dependency-container";
export declare const INJECTION_TOKEN_METADATA_KEY = "injectionTokens";
export declare function getParamInfo(target: any, propertyKey?: string | symbol | undefined): ParamInfo[];
export declare function defineInjectionTokenMetadata(data: any): (target: any, propertyKey: string | symbol, parameterIndex: number) => any;