mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
Allow query to be undefined (I think that's allowed)
This commit is contained in:
parent
b31cf4fdce
commit
3ed639d1c5
@ -18,7 +18,7 @@ import {iterateCursor, reqAsPromise} from "./utils";
|
||||
|
||||
type Reducer<A,B> = (acc: B, val: A) => B
|
||||
|
||||
type IDBQuery = IDBValidKey | IDBKeyRange
|
||||
type IDBQuery = IDBValidKey | IDBKeyRange | undefined
|
||||
|
||||
interface QueryTargetInterface<T> {
|
||||
openCursor: (range?: IDBQuery | null , direction?: IDBCursorDirection) => IDBRequest<IDBCursorWithValue | null>;
|
||||
|
Loading…
Reference in New Issue
Block a user