markdown-table-prettify
Version:
Transforms markdown tables to be more readable.
28 lines (27 loc) • 1.03 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.RowViewModel = void 0;
var RowViewModel = /** @class */ (function () {
function RowViewModel(_values, _eol) {
this._values = _values;
this._eol = _eol;
}
Object.defineProperty(RowViewModel.prototype, "columnCount", {
get: function () { return this._values.length; },
enumerable: false,
configurable: true
});
Object.defineProperty(RowViewModel.prototype, "EOL", {
get: function () { return this._eol; },
enumerable: false,
configurable: true
});
RowViewModel.prototype.getValueAt = function (index) {
var maxIndex = this._values.length - 1;
if (index < 0 || index > maxIndex)
throw new Error("Argument out of range; should be between 0 and " + maxIndex + ", but was " + index + ".");
return this._values[index];
};
return RowViewModel;
}());
exports.RowViewModel = RowViewModel;
;