added interfaces

This commit is contained in:
remojansen
2015-04-18 11:21:01 +01:00
parent a82f4781a1
commit 31bfa9579b
+15
View File
@@ -4,6 +4,21 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module inversify {
interface TypeBindingInterface<TServiceType> {
runtimeIdentifier : string;
implementationType : { new(): TServiceType ;};
cache : TServiceType;
scope : number; // TypeBindingScopeEnum
}
interface KernelInterface {
bind(typeBinding : TypeBindingInterface<any>) : void;
unbind(runtimeIdentifier : string) : void;
unbindAll() : void;
resolve<TImplementationType>(runtimeIdentifier : string) : TImplementationType;
}
enum TypeBindingScopeEnum {
Transient = 0,
Singleton = 1,