aboutsummaryrefslogtreecommitdiff
path: root/ext/js/data/database.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/data/database.js')
-rw-r--r--ext/js/data/database.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/js/data/database.js b/ext/js/data/database.js
index 7f37347b..a53c8ddb 100644
--- a/ext/js/data/database.js
+++ b/ext/js/data/database.js
@@ -194,10 +194,10 @@ export class Database {
request.onsuccess = (e) => {
const cursor = /** @type {IDBRequest<?IDBCursorWithValue>} */ (e.target).result;
if (cursor) {
- /** @type {TResult} */
+ /** @type {unknown} */
const value = cursor.value;
- if (noPredicate || predicate(value, predicateArg)) {
- resolve(value, data);
+ if (noPredicate || predicate(/** @type {TResult} */ (value), predicateArg)) {
+ resolve(/** @type {TResult} */ (value), data);
} else {
cursor.continue();
}
@@ -424,9 +424,9 @@ export class Database {
request.onsuccess = (e) => {
const cursor = /** @type {IDBRequest<?IDBCursorWithValue>} */ (e.target).result;
if (cursor) {
- /** @type {TResult} */
+ /** @type {unknown} */
const value = cursor.value;
- results.push(value);
+ results.push(/** @type {TResult} */ (value));
cursor.continue();
} else {
onSuccess(results, data);