//// [genericGetter.ts] class C { data: T; get x(): T { return this.data; } } var c = new C(); var r: string = c.x; //// [genericGetter.js] var C = (function () { function C() { } Object.defineProperty(C.prototype, "x", { get: function () { return this.data; }, enumerable: true, configurable: true }); return C; })(); var c = new C(); var r = c.x;