UNPKG

inversify-binding-decorators

Version:

An utility that allows developers to declare InversifyJS bindings using ES2016 decorators

11 lines (10 loc) 622 B
import interfaces from "../interfaces/interfaces"; import { interfaces as inversifyInterfaces } from "inversify"; declare class ProvideOnSyntax<T> implements interfaces.ProvideOnSyntax<T> { private _bindingOnSyntax; private _provideDoneSyntax; constructor(bindingOnSyntax: (bind: inversifyInterfaces.Bind, target: any) => inversifyInterfaces.BindingOnSyntax<T>, provideDoneSyntax: interfaces.ProvideDoneSyntax); onActivation(fn: (context: inversifyInterfaces.Context, injectable: T) => T): interfaces.ProvideWhenSyntax<T>; done(force?: boolean): (target: any) => any; } export default ProvideOnSyntax;