mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-12-02 04:15:23 +01:00
26 lines
552 B
JavaScript
26 lines
552 B
JavaScript
|
"use strict";
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.default = void 0;
|
||
|
|
||
|
/**
|
||
|
* @typedef {Object} drawRow~border
|
||
|
* @property {string} bodyLeft
|
||
|
* @property {string} bodyRight
|
||
|
* @property {string} bodyJoin
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* @param {number[]} columns
|
||
|
* @param {drawRow~border} border
|
||
|
* @returns {string}
|
||
|
*/
|
||
|
const drawRow = (columns, border) => {
|
||
|
return border.bodyLeft + columns.join(border.bodyJoin) + border.bodyRight + '\n';
|
||
|
};
|
||
|
|
||
|
var _default = drawRow;
|
||
|
exports.default = _default;
|
||
|
//# sourceMappingURL=drawRow.js.map
|