UNPKG

inversify-inject-decorators

Version:

Lazy evaluated property injection decorators for InversifyJS

7 lines (6 loc) 1.15 kB
import { interfaces } from "inversify"; declare function makePropertyInjectDecorator(container: interfaces.Container, doCache: boolean): (serviceIdentifier: string | symbol | interfaces.Newable<any> | interfaces.Abstract<any>) => (proto: any, key: string) => void; declare function makePropertyInjectNamedDecorator(container: interfaces.Container, doCache: boolean): (serviceIdentifier: string | symbol | interfaces.Newable<any> | interfaces.Abstract<any>, named: string) => (proto: any, key: string) => void; declare function makePropertyInjectTaggedDecorator(container: interfaces.Container, doCache: boolean): (serviceIdentifier: string | symbol | interfaces.Newable<any> | interfaces.Abstract<any>, key: string, value: any) => (proto: any, propertyName: string) => void; declare function makePropertyMultiInjectDecorator(container: interfaces.Container, doCache: boolean): (serviceIdentifier: string | symbol | interfaces.Newable<any> | interfaces.Abstract<any>) => (proto: any, key: string) => void; export { makePropertyInjectDecorator, makePropertyMultiInjectDecorator, makePropertyInjectTaggedDecorator, makePropertyInjectNamedDecorator };