( folder: NoteFolder, oldSubpath: string, newSubpath: string )
| 553 | } |
| 554 | |
| 555 | function renameFolder( |
| 556 | folder: NoteFolder, |
| 557 | oldSubpath: string, |
| 558 | newSubpath: string |
| 559 | ): Promise<string> { |
| 560 | return jsonRequest<{ subpath: string }>('/folders/rename', { |
| 561 | method: 'POST', |
| 562 | body: { folder, oldSubpath, newSubpath } |
| 563 | }).then(r => r.subpath) |
| 564 | } |
| 565 | |
| 566 | function deleteFolder(folder: NoteFolder, subpath: string): Promise<void> { |
| 567 | return jsonRequest<void>('/folders/delete', { |
no test coverage detected