##// END OF EJS Templates
Initial work on typescript support for the container configuration
Initial work on typescript support for the container configuration

File last commit:

r107:3725cefc8f98 ioc ts support
r107:3725cefc8f98 ioc ts support
Show More
Box.ts
18 lines | 318 B | video/mp2t | TypeScriptLexer
cin
Initial work on typescript support for the container configuration
r107 import { inject } from "../di/Annotations";
export interface Injector<T> {
setValue(value: T);
}
export class Box<T> implements Injector<T> {
private _value: T;
@inject<Injector<T>>("bar")
setValue(value: T) {
this._value = value;
}
getValue() {
return this._value;
}
}