* Adds an HTML list to the summary buffer * * @param {string[]} items list of items to render * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false) * * @returns {Summary} summary instance
(items, ordered = false)
| 19690 | return __awaiter(this, void 0, void 0, function* () { |
| 19691 | const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite); |
| 19692 | const filePath = yield this.filePath(); |
| 19693 | const writeFunc = overwrite ? writeFile : appendFile; |
| 19694 | yield writeFunc(filePath, this._buffer, { encoding: "utf8" }); |
| 19695 | return this.emptyBuffer(); |
| 19696 | }); |
| 19697 | } |
| 19698 | /** |
| 19699 | * Clears the summary buffer and wipes the summary file |
| 19700 | * |