aboutsummaryrefslogtreecommitdiff
path: root/packages/idb-bridge/src/idbtypes.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-01-05 15:38:43 +0100
committerFlorian Dold <florian@dold.me>2022-01-05 16:48:22 +0100
commitdc040ba41cd6d66fa63b33ed1adfc80f7e6a6861 (patch)
tree4a631b6a7cb879f75258e7b651eb7e371ee27a10 /packages/idb-bridge/src/idbtypes.ts
parent6e9885441162586abeb64425568273e32e851677 (diff)
downloadwallet-core-dc040ba41cd6d66fa63b33ed1adfc80f7e6a6861.tar.xz
update dependencies to fix rollup issue
Diffstat (limited to 'packages/idb-bridge/src/idbtypes.ts')
-rw-r--r--packages/idb-bridge/src/idbtypes.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/idb-bridge/src/idbtypes.ts b/packages/idb-bridge/src/idbtypes.ts
index fe9003d6d..5fc58e88b 100644
--- a/packages/idb-bridge/src/idbtypes.ts
+++ b/packages/idb-bridge/src/idbtypes.ts
@@ -267,7 +267,7 @@ export interface IDBCursor {
/**
* Returns the IDBObjectStore or IDBIndex the cursor was opened from.
*/
- readonly source: IDBObjectStore | IDBIndex;
+ readonly source: IDBObjectStore | IDBIndex | IDBCursor;
/**
* Advances the cursor through the next count records in range.
*/
@@ -820,7 +820,7 @@ export interface IDBTransaction extends EventTarget {
/**
* If the transaction was aborted, returns the error (a DOMException) providing the reason.
*/
- readonly error: DOMException;
+ readonly error: DOMException | null;
/**
* Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.
*/
@@ -836,6 +836,7 @@ export interface IDBTransaction extends EventTarget {
* Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.
*/
abort(): void;
+ commit(): void;
/**
* Returns an IDBObjectStore in the transaction's scope.
*/