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 3

{
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: "resource-limit";
severity: "error";
resource:
| "operations"
| "encoded-bytes"
| "pending-commits"
| "pending-operations"
| "pending-encoded-bytes";
actual: number;
max: 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: "resource-limit";
severity: "error";
resource:
| "operations"
| "encoded-bytes"
| "pending-commits"
| "pending-operations"
| "pending-encoded-bytes";
actual: number;
max: number;
message: string;
};