(changes: Partial<BookRecord>)
| 121 | } |
| 122 | |
| 123 | updateBook(changes: Partial<BookRecord>) { |
| 124 | changes = { |
| 125 | ...changes, |
| 126 | updatedAt: Date.now(), |
| 127 | } |
| 128 | // don't wait promise resolve to make valtio batch updates |
| 129 | this.book = { ...this.book, ...changes } |
| 130 | db?.books.update(this.book.id, changes) |
| 131 | } |
| 132 | |
| 133 | annotationRange?: Range |
| 134 | setAnnotationRange(cfi: string) { |
no test coverage detected