Skip to content

CommentEvent

type CommentEvent =
| CommentEventBase & {
author: CommentAuthor;
kind: "thread.create";
threadId: string;
}
| CommentEventBase & {
author: CommentAuthor;
body: string;
commentId: string;
kind: "comment.add";
threadId: string;
}
| CommentEventBase & {
body: string;
commentId: string;
kind: "comment.edit";
}
| CommentEventBase & {
commentId: string;
kind: "comment.delete";
}
| CommentEventBase & {
by?: CommentAuthor;
kind: "thread.resolve";
threadId: string;
}
| CommentEventBase & {
by?: CommentAuthor;
kind: "thread.reopen";
threadId: string;
}
| CommentEventBase & {
kind: "thread.delete";
threadId: string;
};

Defined in: comments/types.ts:64