diff options
Diffstat (limited to 'packages/idb-bridge/src/idbtypes.ts')
-rw-r--r-- | packages/idb-bridge/src/idbtypes.ts | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/packages/idb-bridge/src/idbtypes.ts b/packages/idb-bridge/src/idbtypes.ts index fe9003d6d..9ee93e050 100644 --- a/packages/idb-bridge/src/idbtypes.ts +++ b/packages/idb-bridge/src/idbtypes.ts @@ -19,48 +19,27 @@ and limitations under the License. * Instead of ambient types, we export type declarations. */ -/** - * @public - */ export type IDBKeyPath = string; -/** - * @public - */ export interface EventListener { (evt: Event): void; } -/** - * @public - */ export interface EventListenerObject { handleEvent(evt: Event): void; } -/** - * @public - */ export interface EventListenerOptions { capture?: boolean; } -/** - * @public - */ export interface AddEventListenerOptions extends EventListenerOptions { once?: boolean; passive?: boolean; } -/** - * @public - */ export type IDBTransactionMode = "readonly" | "readwrite" | "versionchange"; -/** - * @public - */ export type EventListenerOrEventListenerObject = | EventListener | EventListenerObject; @@ -68,8 +47,6 @@ export type EventListenerOrEventListenerObject = /** * EventTarget is a DOM interface implemented by objects that can receive * events and may have listeners for them. - * - * @public */ export interface EventTarget { /** @@ -820,7 +797,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 +813,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. */ |