1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
//// [accessorsEmit.ts]
class Result { }
class Test {
get Property(): Result {
var x = 1;
return null;
}
}
class Test2 {
get Property() {
var x = 1;
return null;
}
}
//// [accessorsEmit.js]
var Result = /** @class */ (function () {
function Result() {
}
return Result;
}());
var Test = /** @class */ (function () {
function Test() {
}
Object.defineProperty(Test.prototype, "Property", {
get: function () {
var x = 1;
return null;
},
enumerable: true,
configurable: true
});
return Test;
}());
var Test2 = /** @class */ (function () {
function Test2() {
}
Object.defineProperty(Test2.prototype, "Property", {
get: function () {
var x = 1;
return null;
},
enumerable: true,
configurable: true
});
return Test2;
}());
|