State transition emitted by the comment coordinator.
- Package
@sheetwrite/core
- Source
packages/core/src/collaboration.ts#L448
Variants 5
threads: readonly CommentThreadinterface CommentThread {
id: string;
documentId: string;
anchor: CommentAnchor;
version: number;
messages: readonly CommentMessage[];
resolved: boolean;
resolvedBy?: CommentAuthorRef;
resolvedAt?: string;
}interface CommentThread {
id: string;
documentId: string;
anchor: CommentAnchor;
version: number;
messages: readonly CommentMessage[];
resolved: boolean;
resolvedBy?: CommentAuthorRef;
resolvedAt?: string;
}interface CommentThread {
id: string;
documentId: string;
anchor: CommentAnchor;
version: number;
messages: readonly CommentMessage[];
resolved: boolean;
resolvedBy?: CommentAuthorRef;
resolvedAt?: string;
}Versioned discussion anchored to a document location.API reference →[];
{ type: "changed"; version: number; thread: CommentThreadinterface CommentThread {
id: string;
documentId: string;
anchor: CommentAnchor;
version: number;
messages: readonly CommentMessage[];
resolved: boolean;
resolvedBy?: CommentAuthorRef;
resolvedAt?: string;
}interface CommentThread {
id: string;
documentId: string;
anchor: CommentAnchor;
version: number;
messages: readonly CommentMessage[];
resolved: boolean;
resolvedBy?: CommentAuthorRef;
resolvedAt?: string;
}interface CommentThread {
id: string;
documentId: string;
anchor: CommentAnchor;
version: number;
messages: readonly CommentMessage[];
resolved: boolean;
resolvedBy?: CommentAuthorRef;
resolvedAt?: string;
}Versioned discussion anchored to a document location.API reference → }
{ type: "conflict"; currentVersion: number }
{ type: "error"; error: unknown }
Declaration
View full TypeScript declaration
export type CommentCoordinatorEvent =
threads: readonly CommentThreadinterface CommentThread {
id: string;
documentId: string;
anchor: CommentAnchor;
version: number;
messages: readonly CommentMessage[];
resolved: boolean;
resolvedBy?: CommentAuthorRef;
resolvedAt?: string;
}interface CommentThread {
id: string;
documentId: string;
anchor: CommentAnchor;
version: number;
messages: readonly CommentMessage[];
resolved: boolean;
resolvedBy?: CommentAuthorRef;
resolvedAt?: string;
}interface CommentThread {
id: string;
documentId: string;
anchor: CommentAnchor;
version: number;
messages: readonly CommentMessage[];
resolved: boolean;
resolvedBy?: CommentAuthorRef;
resolvedAt?: string;
}Versioned discussion anchored to a document location.API reference →[]; thread: CommentThreadinterface CommentThread {
id: string;
documentId: string;
anchor: CommentAnchor;
version: number;
messages: readonly CommentMessage[];
resolved: boolean;
resolvedBy?: CommentAuthorRef;
resolvedAt?: string;
}interface CommentThread {
id: string;
documentId: string;
anchor: CommentAnchor;
version: number;
messages: readonly CommentMessage[];
resolved: boolean;
resolvedBy?: CommentAuthorRef;
resolvedAt?: string;
}interface CommentThread {
id: string;
documentId: string;
anchor: CommentAnchor;
version: number;
messages: readonly CommentMessage[];
resolved: boolean;
resolvedBy?: CommentAuthorRef;
resolvedAt?: string;
}Versioned discussion anchored to a document location.API reference →;