Skip to content
Sheetwrite

Sheetwrite / Documentation

CommentMutation@sheetwrite/core

Serializable operation that creates or updates comment state.

Serializable operation that creates or updates comment state.

Variants 3

{
kind: "create";
threadId: string;
messageId: string;
anchor: CommentAnchor;
body: string;
}
{
kind: "reply";
threadId: string;
messageId: string;
body: string;
}
{ kind: "resolve"; threadId: string; resolved: boolean }

Declaration

View full TypeScript declaration
export type CommentMutation =
| {
kind: "create";
threadId: string;
messageId: string;
anchor: CommentAnchor;
body: string;
}
| {
kind: "reply";
threadId: string;
messageId: string;
body: string;
}
| {
kind: "resolve";
threadId: string;
resolved: boolean;
};