Skip to content

API reference / Common / Engine types / CommentCommand

Type Alias: CommentCommand ​

ts
type CommentCommand = 
  | {
  setCommentBody: {
     body: string;
  };
}
  | {
  setCommentStatus: {
     status: CommentStatus;
  };
};

An edit of one comment. A command only writes the CRDT; the model follows from the decode. See Comment Model.