* 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)
| 19687 | return __awaiter(this, void 0, void 0, function* () { |
| 19688 | const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite); |
| 19689 | const filePath = yield this.filePath(); |
| 19690 | const writeFunc = overwrite ? writeFile : appendFile; |
| 19691 | yield writeFunc(filePath, this._buffer, { encoding: "utf8" }); |
| 19692 | return this.emptyBuffer(); |
| 19693 | }); |
| 19694 | } |
| 19695 | /** |
| 19696 | * Clears the summary buffer and wipes the summary file |
| 19697 | * |