summaryrefslogtreecommitdiff
path: root/src/node_modules/inversify/dts/bindings/binding.d.ts
blob: b065c219cb0e56ff7001660bf1d21abfb21a44ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { interfaces } from "../interfaces/interfaces";
declare class Binding<T> implements interfaces.Binding<T> {
    id: number;
    moduleId: string;
    activated: boolean;
    serviceIdentifier: interfaces.ServiceIdentifier<T>;
    implementationType: interfaces.Newable<T> | null;
    cache: T | null;
    dynamicValue: ((context: interfaces.Context) => T) | null;
    scope: interfaces.BindingScope;
    type: interfaces.BindingType;
    factory: interfaces.FactoryCreator<T> | null;
    provider: interfaces.ProviderCreator<T> | null;
    constraint: (request: interfaces.Request) => boolean;
    onActivation: ((context: interfaces.Context, injectable: T) => T) | null;
    constructor(serviceIdentifier: interfaces.ServiceIdentifier<T>, scope: interfaces.BindingScope);
    clone(): interfaces.Binding<T>;
}
export { Binding };