Skip to content
Sheetwrite

Sheetwrite / Documentation

MutationIssue@sheetwrite/core

Structured warning or rejection produced while applying an operation.

Structured warning or rejection produced while applying an operation.

Variants 5

{
kind: "validation";
severity: "error" | "warning";
ruleId: string;
addr: CellAddress;
value: CellValue;
message: string;
operationIndex: number;
}
{
kind: "protection";
severity: "error";
protectedRangeId: string;
range: Range;
operationIndex: number;
message: string;
}
{
kind: "invalid-operation";
severity: "error";
operationIndex: number;
message: string;
}
{
kind: "resource-limit";
severity: "error";
resource:
| "operations"
| "encoded-bytes"
| "pending-commits"
| "pending-operations"
| "pending-encoded-bytes"
| "paged-dirty-cells"
| "paged-reference-simulation";
actual: number;
max: number;
message: string;
}
{
kind: "sheet-lifecycle";
severity: "error";
code: SheetLifecycleIssueCode;
sheet?: SheetId;
operationIndex: number;
message: string;
}

Declaration

View full TypeScript declaration
export type MutationIssue =
| {
kind: "validation";
severity: "error" | "warning";
ruleId: string;
addr: CellAddress;
value: CellValue;
message: string;
operationIndex: number;
}
| {
kind: "protection";
severity: "error";
protectedRangeId: string;
range: Range;
operationIndex: number;
message: string;
}
| {
kind: "invalid-operation";
severity: "error";
operationIndex: number;
message: string;
}
| {
kind: "resource-limit";
severity: "error";
resource:
| "operations"
| "encoded-bytes"
| "pending-commits"
| "pending-operations"
| "pending-encoded-bytes"
| "paged-dirty-cells"
| "paged-reference-simulation";
actual: number;
max: number;
message: string;
}
| {
kind: "sheet-lifecycle";
severity: "error";
code: SheetLifecycleIssueCode;
sheet?: SheetId;
operationIndex: number;
message: string;
};