##// END OF EJS Templates
fluent configuration interfaces
fluent configuration interfaces

File last commit:

r127:850cc60b6e2a ioc ts support
r127:850cc60b6e2a ioc ts support
Show More
Bar.ts
39 lines | 726 B | video/mp2t | TypeScriptLexer
cin
tests moved under src/ folder...
r50 import { Foo } from "./Foo";
cin
fluent configuration interfaces
r127 import { annotate, dependency } from "./services";
cin
tests moved under src/ folder...
r50
cin
fluent configuration interfaces
r127 export const service = annotate<Bar>();
cin
tests moved under src/ folder...
r50
cin
fluent configuration interfaces
r127 @service.wire({
cin
configuration draft-1
r119 foo: dependency("foo"),
cin
configuration interfaces moved to di/Configuration module...
r118 nested: {
cin
sync
r121 lazy: dependency("foo", { lazy: true })
},
cin
working on container configuration dsl
r124 host: dependency("host")
}, "")
cin
Working on IoC container configuration
r111 export class Bar {
cin
fluent configuration interfaces
r127 barName = "Twister";
cin
tests moved under src/ folder...
r50
cin
Working on IoC container configuration
r111 _v: Foo | undefined;
cin
working on container configuration dsl
r124 constructor(_opts: {
cin
configuration interfaces moved to di/Configuration module...
r118 foo?: Foo;
nested?: {
cin
Working on IoC container configuration
r111 lazy: () => Foo
cin
sync
r121 },
host: string
cin
working on container configuration dsl
r124 }, s: string) {
cin
Working on IoC container configuration
r111
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
cin
working on fluent container configuration
r125 setName(name: string) {
}
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 }