UNPKG

@launchtray/tsyringe-async

Version:

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

9 lines (8 loc) 380 B
import InjectionToken from "../providers/injection-token"; /** * Parameter decorator factory that allows for interface information to be stored in the constructor's metadata * * @return {Function} The parameter decorator */ declare function inject(token: InjectionToken<any>): (target: any, propertyKey: string | symbol, parameterIndex: number) => any; export default inject;