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.
Package
@sheetwrite/core
Source
packages/core/src/types/transaction.ts#L142
Members 1
patches
patches: DocumentOptype DocumentOp =
| {
op: "set";
addr: CellAddress;
value: CellValue;
style?: CellStyle;
}
| { op: "setRange"; range: Range; cells: SnapshotCell[] }
| { op: "setBlock"; range: Range; block: PackedCellBlock }
| {
op: "setRangeStyle";
range: Range;
style: Partial<CellStyle> | null;
}
| {
// … 78 more lines — see the API reference
}typeDocumentOp=| {op:"set";addr:CellAddress;value:CellValue;style?:CellStyle;}| { op:"setRange"; range:Range; cells:SnapshotCell[] }| { op:"setBlock"; range:Range; block:PackedCellBlock }| {op:"setRangeStyle";range:Range;style:Partial<CellStyle> |null;}| {// … 78 more lines — see the API reference}typeDocumentOp=| {op:"set";addr:CellAddress;value:CellValue;style?:CellStyle;}| {op:"setRange";range:Range;cells:SnapshotCell[];}| {op:"setBlock";range:Range;block:PackedCellBlock;}| {op:"setRangeStyle";// … 138 more lines — see the API reference}Exhaustive serializable operation union for workbook mutations.API reference →[];
Declaration
View full TypeScript declaration
exportinterfaceGridTransaction {
patches:DocumentOptype DocumentOp =
| {
op: "set";
addr: CellAddress;
value: CellValue;
style?: CellStyle;
}
| { op: "setRange"; range: Range; cells: SnapshotCell[] }
| { op: "setBlock"; range: Range; block: PackedCellBlock }
| {
op: "setRangeStyle";
range: Range;
style: Partial<CellStyle> | null;
}
| {
// … 78 more lines — see the API reference
}typeDocumentOp=| {op:"set";addr:CellAddress;value:CellValue;style?:CellStyle;}| { op:"setRange"; range:Range; cells:SnapshotCell[] }| { op:"setBlock"; range:Range; block:PackedCellBlock }| {op:"setRangeStyle";range:Range;style:Partial<CellStyle> |null;}| {// … 78 more lines — see the API reference}typeDocumentOp=| {op:"set";addr:CellAddress;value:CellValue;style?:CellStyle;}| {op:"setRange";range:Range;cells:SnapshotCell[];}| {op:"setBlock";range:Range;block:PackedCellBlock;}| {op:"setRangeStyle";// … 138 more lines — see the API reference}Exhaustive serializable operation union for workbook mutations.API reference →[];