State or restore transition emitted by revision coordination.
Package
@sheetwrite/core
Source
packages/core/src/collaboration.ts#L287
Variants 3
{ type: "restored"; targetVersion: number; version: number }
{
type: "conflict";
targetVersion: number;
currentVersion: number;
}
{ type: "error"; error: SheetwriteErrorclass SheetwriteError
extends Error
implements SheetwriteErrorEnvelope
{
constructor(
code: SheetwriteErrorCode,
operation: SheetwriteErrorOperation,
message: string,
options?: SheetwriteErrorOptions,
);
code:
| "aborted"
| "blocked"
| "initialization-failed"
| "initialization-required"
// … 73 more lines — see the API reference
}classSheetwriteErrorextendsErrorimplementsSheetwriteErrorEnvelope{constructor(code:SheetwriteErrorCode,operation:SheetwriteErrorOperation,message:string,options?:SheetwriteErrorOptions,);code:|"aborted"|"blocked"|"initialization-failed"|"initialization-required"// … 73 more lines — see the API reference}classSheetwriteErrorextendsErrorimplementsSheetwriteErrorEnvelope{constructor(code:SheetwriteErrorCode,operation:SheetwriteErrorOperation,message:string,options?:SheetwriteErrorOptions,);code:|"aborted"|"blocked"|"initialization-failed"|"initialization-required"|"datasource-request-failed"|"renderer-fallback"|"export-failed"// … 75 more lines — see the API reference}Canonical envelope for thrown and callback-delivered Sheetwrite failures.API reference → }
Declaration
View full TypeScript declaration
exporttypeRevisionCoordinatorEvent=
| {
type:"restored";
targetVersion:number;
version:number;
}
| {
type:"conflict";
targetVersion:number;
currentVersion:number;
}
| {
type:"error";
error:SheetwriteErrorclass SheetwriteError
extends Error
implements SheetwriteErrorEnvelope
{
constructor(
code: SheetwriteErrorCode,
operation: SheetwriteErrorOperation,
message: string,
options?: SheetwriteErrorOptions,
);
code:
| "aborted"
| "blocked"
| "initialization-failed"
| "initialization-required"
// … 73 more lines — see the API reference
}classSheetwriteErrorextendsErrorimplementsSheetwriteErrorEnvelope{constructor(code:SheetwriteErrorCode,operation:SheetwriteErrorOperation,message:string,options?:SheetwriteErrorOptions,);code:|"aborted"|"blocked"|"initialization-failed"|"initialization-required"// … 73 more lines — see the API reference}classSheetwriteErrorextendsErrorimplementsSheetwriteErrorEnvelope{constructor(code:SheetwriteErrorCode,operation:SheetwriteErrorOperation,message:string,options?:SheetwriteErrorOptions,);code:|"aborted"|"blocked"|"initialization-failed"|"initialization-required"|"datasource-request-failed"|"renderer-fallback"|"export-failed"// … 75 more lines — see the API reference}Canonical envelope for thrown and callback-delivered Sheetwrite failures.API reference →;