Skip to content
Sheetwrite

@sheetwrite/core/browser/history

IndexedDbHistoryStorageclass

Report a problem

On this page

Browser history storage. Import it from @sheetwrite/core/browser/history. Each call opens the database, runs one readwrite transaction over every store, and closes the connection, so publication and reference counts are atomic across restarts and tabs.

Members

Methods

Declaration

View full TypeScript declaration
class IndexedDbHistoryStorage extends AtomicHistoryStorage {
constructor(options?: IndexedDbHistoryStorageOptions);
transact: <T>(
action: (transaction: HistoryStorageTransaction) => Promise<T>,
) => Promise<T>;
}