Skip to content
Sheetwrite

Sheetwrite / Documentation

CommentCoordinatorEvent@sheetwrite/core

State transition emitted by the comment coordinator.

State transition emitted by the comment coordinator.

Variants 5

{
type: "loaded";
version: number;
threads: readonly CommentThread[];
}
{ type: "changed"; version: number; thread: CommentThread }
{ type: "conflict"; currentVersion: number }
{
type: "gap";
expectedVersion: number;
receivedVersion: number;
}
{ type: "error"; error: unknown }

Declaration

View full TypeScript declaration
export type CommentCoordinatorEvent =
| {
type: "loaded";
version: number;
threads: readonly CommentThread[];
}
| {
type: "changed";
version: number;
thread: CommentThread;
}
| {
type: "conflict";
currentVersion: number;
}
| {
type: "gap";
expectedVersion: number;
receivedVersion: number;
}
| {
type: "error";
error: unknown;
};