An undoable transaction submitted through a Grid.
Grid transactions deliberately have no epoch: optimistic reconciliation is
a low-level Store concern, while Grid commits are normal host-driven edits
that participate in read-only policy and undo/redo history.
Members 1
Declaration
View full TypeScript declaration
export interface GridTransaction {
Referenced by
Workspace packages depending on @sheetwrite/core
@sheetwrite/benchdependency
@sheetwrite/docs-startdependency
@sheetwrite/reactdependency
@sheetwrite/sveltedependency
@sheetwrite/vuedependency
@sheetwrite/xlsxdependency
Public exports naming GridTransaction
Grid@sheetwrite/core
Grid@sheetwrite/react
Grid@sheetwrite/svelte
Grid@sheetwrite/vue
type DocumentOp =
| {
op: "set";
addr: CellAddress;
value: CellValue;
style?: CellStyle;
}
| { op: "setRange"; range: Range; cells: SnapshotCell[] }
| { op: "setBlock"; range: Range; block: PackedCellBlock }
| {
op: "restoreBlock";
range: Range;
encoding: "deflate-json-v1";
decodedBytes: number;
data: string;
// … 100 more lines — see the API reference
} type DocumentOp =
| {
op : "set" ;
addr : CellAddress ;
value : CellValue ;
style ?: CellStyle ;
}
| { op : "setRange" ; range : Range ; cells : SnapshotCell [] }
| { op : "setBlock" ; range : Range ; block : PackedCellBlock }
| {
op : "restoreBlock" ;
range : Range ;
encoding : "deflate-json-v1" ;
decodedBytes : number ;
data : string ;
// … 100 more lines — see the API reference
} type DocumentOp =
| {
op : "set" ;
addr : CellAddress ;
value : CellValue ;
style ?: CellStyle ;
}
| {
op : "setRange" ;
range : Range ;
cells : SnapshotCell [];
}
| {
op : "setBlock" ;
range : Range ;
block : PackedCellBlock ;
}
| {
op : "restoreBlock" ;
// … 175 more lines — see the API reference
} Exhaustive serializable operation union for workbook mutations. API reference →