2014-07-13 01:04:16 +02:00
|
|
|
//// [contextualTyping3.ts]
|
|
|
|
class foo { public bar:{id:number;} = {id:5}; }
|
|
|
|
|
|
|
|
//// [contextualTyping3.js]
|
|
|
|
var foo = (function () {
|
|
|
|
function foo() {
|
2015-03-26 21:46:35 +01:00
|
|
|
this.bar = { id: 5 };
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
return foo;
|
|
|
|
})();
|