diff --git a/src/matrix/storage/idb/QueryTarget.ts b/src/matrix/storage/idb/QueryTarget.ts index 71da4d76..bb02b990 100644 --- a/src/matrix/storage/idb/QueryTarget.ts +++ b/src/matrix/storage/idb/QueryTarget.ts @@ -18,7 +18,7 @@ import {iterateCursor, reqAsPromise} from "./utils"; type Reducer = (acc: B, val: A) => B -type IDBQuery = IDBValidKey | IDBKeyRange +type IDBQuery = IDBValidKey | IDBKeyRange | undefined interface QueryTargetInterface { openCursor: (range?: IDBQuery | null , direction?: IDBCursorDirection) => IDBRequest;