##// END OF EJS Templates
configuration interfaces moved to di/Configuration module...
configuration interfaces moved to di/Configuration module ActivationType converted to string literals Working on annotations

File last commit:

r118:6738ac4c3072 ioc ts support
r118:6738ac4c3072 ioc ts support
Show More
Bar.ts
33 lines | 583 B | video/mp2t | TypeScriptLexer
cin
tests moved under src/ folder...
r50 import { Foo } from "./Foo";
cin
configuration interfaces moved to di/Configuration module...
r118 import { build } from "./config";
cin
tests moved under src/ folder...
r50
cin
configuration interfaces moved to di/Configuration module...
r118 const service = build<Bar>();
cin
tests moved under src/ folder...
r50
cin
configuration interfaces moved to di/Configuration module...
r118 @service.consume({
foo: service.get("foo"),
nested: {
lazy: service.lazy("foo")
}
})
cin
Working on IoC container configuration
r111 export class Bar {
barName = "bar";
cin
tests moved under src/ folder...
r50
cin
Working on IoC container configuration
r111 _v: Foo | undefined;
cin
configuration interfaces moved to di/Configuration module...
r118 constructor(_opts?: {
foo?: Foo;
nested?: {
cin
Working on IoC container configuration
r111 lazy: () => Foo
}
}) {
cin
corrected code to support ts strict mode...
r115 if (_opts && _opts.foo)
this._v = _opts.foo;
cin
tests moved under src/ folder...
r50 }
cin
working on di decorators
r109
getFoo() {
cin
Working on IoC container configuration
r111 if (this._v === undefined)
cin
working on di decorators
r109 throw new Error("The foo isn't set");
cin
Working on IoC container configuration
r111 return this._v;
cin
working on di decorators
r109 }
cin
tests moved under src/ folder...
r50 }