Skip to content
Sheetwrite

Sheetwrite / Documentation

Transaction@sheetwrite/core

Low-level Store transaction.

Low-level Store transaction. epoch provides optional optimistic concurrency at the storage boundary.

Calling Store.applyTransaction bypasses Grid read-only checks and Grid undo/redo history. Host-driven edits should use Grid.applyTransaction.

Members 2

patches Ordered document operations submitted as one store commit.
patches: DocumentOp[];
epoch Expected current store epoch; a mismatch returns a conflict without applying patches.
epoch?: number;

Declaration

View full TypeScript declaration
export interface Transaction {
patches: DocumentOp[];
epoch?: number;
}