@idxdb/promised
Version:
@idxdb/promised wraps the IndexedDB API. It allows you to easily store and retrieve data in an indexed db database using async/await syntax, making it easier to integrate with your existing codebase.
17 lines (16 loc) • 612 B
TypeScript
import { ObjectStoreInterface, TransactionInterface } from '../component/interface/components.interface.js';
import { Database } from '../component/database.js';
export declare class Transaction implements TransactionInterface {
private readonly ctx;
constructor(ctx: {
transaction: IDBTransaction;
});
abort(): Promise<void>;
commit(): Promise<void>;
objectStore(name: string): ObjectStoreInterface;
get objectStoreNames(): string[];
get db(): Database;
get durability(): IDBTransactionDurability;
get error(): DOMException;
get mode(): IDBTransactionMode;
}