Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
add jsdocs to note.cloneTo, closes #2996
zadam8f5983fa01aa
diff --git a/docs/backend_api/Note.html b/docs/backend_api/Note.htmlindex 23a38a14c7..5163824c83 100644--- a/docs/backend_api/Note.html+++ b/docs/backend_api/Note.html@@ -1252,6 +1252,152 @@+++++++ <h4 class="name" id="cloneTo"><span class="type-signature"></span>cloneTo<span class="signature">(parentNoteId)</span><span class="type-signature"> → {Object}</span></h4>+++++++++++++++ <h5>Parameters:</h5>+++<table class="params">+ <thead>+ <tr>++ <th>Name</th>+++ <th>Type</th>++++++ <th class="last">Description</th>+ </tr>+ </thead>++ <tbody>+++ <tr>++ <td class="name"><code>parentNoteId</code></td>+++ <td class="type">++ </td>++++++ <td class="description last"></td>+ </tr>+++ </tbody>+</table>+++++++<dl class="details">+++++++++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1179">line 1179</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type">Object</span>+++ </dd>+</dl>+++++++@@ -1404,7 +1550,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1189">line 1189</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1193">line 1193</a></li></ul></dd>@@ -9807,7 +9953,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1233">line 1233</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1237">line 1237</a></li></ul></dd>diff --git a/docs/backend_api/becca_entities_note.js.html b/docs/backend_api/becca_entities_note.js.htmlindex b81585f365..734e64a457 100644--- a/docs/backend_api/becca_entities_note.js.html+++ b/docs/backend_api/becca_entities_note.js.html@@ -1200,6 +1200,10 @@ class Note extends AbstractEntity {return this.searchNotesInSubtree(searchString)[0];}+ /**+ * @param parentNoteId+ * @returns {{success: boolean, message: string}}+ */cloneTo(parentNoteId) {const cloningService = require("../../services/cloning");diff --git a/src/becca/entities/note.js b/src/becca/entities/note.jsindex 19772159e4..40d16bc7ea 100644--- a/src/becca/entities/note.js+++ b/src/becca/entities/note.js@@ -1172,6 +1172,10 @@ class Note extends AbstractEntity {return this.searchNotesInSubtree(searchString)[0];}+ /**+ * @param parentNoteId+ * @returns {{success: boolean, message: string}}+ */cloneTo(parentNoteId) {const cloningService = require("../../services/cloning");