@sheetwrite/coretype
Successful rebased operations or a conservative rebase conflict.
- Package
@sheetwrite/core- Source
packages/core/src/rebase.ts#L23
Variants 2
{ status: "rebased"; operations: readonly 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
}type 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
}type DocumentOp =
| {
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 →[] }{ status: "conflict"; conflict: RebaseConflictinterface RebaseConflict {
code: RebaseConflictCode;
localOperationIndex: number;
remoteOperationIndex: number;
message: string;
}interface RebaseConflict {
code: RebaseConflictCode;
localOperationIndex: number;
remoteOperationIndex: number;
message: string;
}interface RebaseConflict {
code: RebaseConflictCode;
localOperationIndex: number;
remoteOperationIndex: number;
message: string;
}Reason and affected operations for an unsafe document rebase.API reference → }Declaration
View full TypeScript declaration
export type DocumentRebaseResult = | { status: "rebased"; operations: readonly 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
}type 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
}type DocumentOp =
| {
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 →[]; } | { status: "conflict"; conflict: RebaseConflictinterface RebaseConflict {
code: RebaseConflictCode;
localOperationIndex: number;
remoteOperationIndex: number;
message: string;
}interface RebaseConflict {
code: RebaseConflictCode;
localOperationIndex: number;
remoteOperationIndex: number;
message: string;
}interface RebaseConflict {
code: RebaseConflictCode;
localOperationIndex: number;
remoteOperationIndex: number;
message: string;
}Reason and affected operations for an unsafe document rebase.API reference →; };