aboutsummaryrefslogtreecommitdiff
path: root/src/query.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/query.ts')
-rw-r--r--src/query.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/query.ts b/src/query.ts
index f21f82020..68074ec03 100644
--- a/src/query.ts
+++ b/src/query.ts
@@ -653,7 +653,7 @@ export class QueryRoot {
const req = s.openCursor();
let n = 0;
req.onsuccess = () => {
- const cursor: IDBCursorWithValue = req.result;
+ const cursor: IDBCursorWithValue | null = req.result;
if (cursor) {
if (predicate(cursor.value, n++)) {
cursor.delete();