From 3ed639d1c557cc694b27215bea584996e595d6d3 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 13 Aug 2021 16:41:13 -0700 Subject: [PATCH] Allow query to be undefined (I think that's allowed) --- src/matrix/storage/idb/QueryTarget.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;