This commit is contained in:
2025-05-12 05:38:44 +09:00
parent dced21c3f8
commit 6d78bfa46e
8120 changed files with 1161564 additions and 0 deletions

View File

@ -0,0 +1,21 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
Edit title of a part in the summary
@param {Summary} summary
@param {number} index
@param {string} newTitle
@return {Summary}
*/
function editPartTitle(summary, index, newTitle) {
let parts = summary.getParts();
let part = parts.get(index);
if (!part) {
return summary;
}
part = part.set("title", newTitle);
parts = parts.set(index, part);
return summary.set("parts", parts);
}
exports.default = editPartTitle;