summaryrefslogtreecommitdiff
path: root/src/node_modules/inversify/dts/annotation/inject.d.ts
blob: 86bc6f252d2c2d1fb9a676d52a76e588f38ddef4 (plain)
1
2
3
4
5
6
7
8
9
import { interfaces } from "../interfaces/interfaces";
export declare type ServiceIdentifierOrFunc = interfaces.ServiceIdentifier<any> | LazyServiceIdentifer;
export declare class LazyServiceIdentifer<T = any> {
    private _cb;
    constructor(cb: () => interfaces.ServiceIdentifier<T>);
    unwrap(): string | symbol | interfaces.Newable<T> | interfaces.Abstract<T>;
}
declare function inject(serviceIdentifier: ServiceIdentifierOrFunc): (target: any, targetKey: string, index?: number | undefined) => void;
export { inject };