##// END OF EJS Templates
corrected code to support ts strict mode...
corrected code to support ts strict mode safe.ts - more tight typings - added notImplemented stub function - added fork funtion - added keys function (like Object.keys but extracts keys type) - added isKeyof typeguard - added 'primitive' union type added EventProvider for the observable

File last commit:

r115:691199f665e0 ioc ts support
r115:691199f665e0 ioc ts support
Show More
Bar.ts
33 lines | 615 B | video/mp2t | TypeScriptLexer
cin
tests moved under src/ folder...
r50 import { Foo } from "./Foo";
cin
corrected code to support ts strict mode...
r115 // import { config } from "./config";
cin
tests moved under src/ folder...
r50
cin
corrected code to support ts strict mode...
r115 // const service = config.build("bar");
cin
tests moved under src/ folder...
r50
cin
corrected code to support ts strict mode...
r115 // @service.consume({
// f: config.dependency("foo"),
// nested: {
// lazy: config.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;
constructor(_opts: {
cin
corrected code to support ts strict mode...
r115 foo: Foo;
cin
Working on IoC container configuration
r111 nested: {
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 }