Updated documentation for the duplicateSubtree, and removed commented out code per request.

This commit is contained in:
Geekswordsman
2025-08-07 16:54:21 -04:00
parent 8e04690568
commit 911fee0213
2 changed files with 5 additions and 6 deletions

View File

@@ -413,9 +413,13 @@ export interface Api {
backupNow(backupName: string): Promise<string>;
/**
* Exposes the backend duplicateSubtree to the API
* Enables the complete duplication of the specified original note and all its children into the specified parent note.
* The new note will be named the same as the original, with (Dup) added to the end of it.
*
* @param origNoteId - the noteId for the original note to be duplicated
* @param newParentNoteId - the noteId for the parent note where the duplication is to be placed.
*
* @returns the note and the branch of the newly created note.
*/
duplicateSubtree(origNoteId: string, newParentNoteId: string): { note: BNote; branch: BBranch; }