mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-07 11:14:00 +08:00
14 lines
430 B
TypeScript
14 lines
430 B
TypeScript
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;
|
|
}
|