(collection: string, slug: string, noteId: string)
| 793 | } |
| 794 | |
| 795 | async deleteNote(collection: string, slug: string, noteId: string): Promise<void> { |
| 796 | if (typeof this.implementation.deleteNote === 'function') { |
| 797 | return this.implementation.deleteNote(collection, slug, noteId); |
| 798 | } |
| 799 | |
| 800 | throw new Error(`Backend '${this.backendName}' does not support deleting notes`); |
| 801 | } |
| 802 | |
| 803 | async toggleNoteResolution(collection: string, slug: string, noteId: string): Promise<Note> { |
| 804 | if (typeof this.implementation.toggleNoteResolution === 'function') { |