Allow query to be undefined (I think that's allowed)
This commit is contained in:
parent
b31cf4fdce
commit
3ed639d1c5
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ import {iterateCursor, reqAsPromise} from "./utils";
|
||||||
|
|
||||||
type Reducer<A,B> = (acc: B, val: A) => B
|
type Reducer<A,B> = (acc: B, val: A) => B
|
||||||
|
|
||||||
type IDBQuery = IDBValidKey | IDBKeyRange
|
type IDBQuery = IDBValidKey | IDBKeyRange | undefined
|
||||||
|
|
||||||
interface QueryTargetInterface<T> {
|
interface QueryTargetInterface<T> {
|
||||||
openCursor: (range?: IDBQuery | null , direction?: IDBCursorDirection) => IDBRequest<IDBCursorWithValue | null>;
|
openCursor: (range?: IDBQuery | null , direction?: IDBCursorDirection) => IDBRequest<IDBCursorWithValue | null>;
|
||||||
|
|
Reference in a new issue