//// [genericGetter2.ts] class A { } class C { data: A; get x(): A { return this.data; } } //// [genericGetter2.js] var A = (function () { function A() { } return A; })(); var C = (function () { function C() { } Object.defineProperty(C.prototype, "x", { get: function () { return this.data; }, enumerable: true, configurable: true }); return C; })();