var shape = (function () { function shape(sides) { this._sides = sides; } Object.defineProperty(shape.prototype, "sides", { get: function () { return this._sides; }, enumerable: true, configurable: true }); shape.makeShape = function (sides) { return new shape(sides); }; return shape; }());