10 lines
209 B
TypeScript
10 lines
209 B
TypeScript
//// [contextualTyping5.ts]
|
|
class foo { public bar:{id:number;} = { }; }
|
|
|
|
//// [contextualTyping5.js]
|
|
var foo = (function () {
|
|
function foo() {
|
|
this.bar = {};
|
|
}
|
|
return foo;
|
|
})();
|