@@ -9196,13 +9196,13 @@ interface IDBIndex {
91969196 *
91979197 * If successful, request's result will be an Array of the values.
91989198 */
9199- getAll(query?: IDBValidKey | IDBKeyRange, count?: number): IDBRequest<any[]>;
9199+ getAll(query?: IDBValidKey | IDBKeyRange | null , count?: number): IDBRequest<any[]>;
92009200 /**
92019201 * Retrieves the keys of records matching the given key or key range in query (up to count if given).
92029202 *
92039203 * If successful, request's result will be an Array of the keys.
92049204 */
9205- getAllKeys(query?: IDBValidKey | IDBKeyRange, count?: number): IDBRequest<IDBValidKey[]>;
9205+ getAllKeys(query?: IDBValidKey | IDBKeyRange | null , count?: number): IDBRequest<IDBValidKey[]>;
92069206 /**
92079207 * Retrieves the key of the first record matching the given key or key range in query.
92089208 *
@@ -9214,13 +9214,13 @@ interface IDBIndex {
92149214 *
92159215 * If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
92169216 */
9217- openCursor(range ?: IDBValidKey | IDBKeyRange, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
9217+ openCursor(query ?: IDBValidKey | IDBKeyRange | null , direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
92189218 /**
92199219 * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.
92209220 *
92219221 * If successful, request's result will be an IDBCursor, or null if there were no matching records.
92229222 */
9223- openKeyCursor(range ?: IDBValidKey | IDBKeyRange, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
9223+ openKeyCursor(query ?: IDBValidKey | IDBKeyRange | null , direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
92249224}
92259225
92269226declare var IDBIndex: {
@@ -9346,13 +9346,13 @@ interface IDBObjectStore {
93469346 *
93479347 * If successful, request's result will be an Array of the values.
93489348 */
9349- getAll(query?: IDBValidKey | IDBKeyRange, count?: number): IDBRequest<any[]>;
9349+ getAll(query?: IDBValidKey | IDBKeyRange | null , count?: number): IDBRequest<any[]>;
93509350 /**
93519351 * Retrieves the keys of records matching the given key or key range in query (up to count if given).
93529352 *
93539353 * If successful, request's result will be an Array of the keys.
93549354 */
9355- getAllKeys(query?: IDBValidKey | IDBKeyRange, count?: number): IDBRequest<IDBValidKey[]>;
9355+ getAllKeys(query?: IDBValidKey | IDBKeyRange | null , count?: number): IDBRequest<IDBValidKey[]>;
93569356 /**
93579357 * Retrieves the key of the first record matching the given key or key range in query.
93589358 *
@@ -9365,13 +9365,13 @@ interface IDBObjectStore {
93659365 *
93669366 * If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
93679367 */
9368- openCursor(range ?: IDBValidKey | IDBKeyRange, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
9368+ openCursor(query ?: IDBValidKey | IDBKeyRange | null , direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
93699369 /**
93709370 * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.
93719371 *
93729372 * If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
93739373 */
9374- openKeyCursor(query?: IDBValidKey | IDBKeyRange, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
9374+ openKeyCursor(query?: IDBValidKey | IDBKeyRange | null , direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
93759375 /**
93769376 * Adds or updates a record in store with the given value and key.
93779377 *
0 commit comments