@univerjs/thread-comment v0.1.17 • Docs
Type Alias: CommentUpdate
type CommentUpdate: {
silent: boolean;
subUnitId: string;
unitId: string;
} &
| {
payload: IThreadComment;
type: "add";
}
| {
payload: IUpdateCommentPayload;
type: "update";
}
| {
payload: {
comment: IThreadComment;
commentId: string;
isRoot: boolean;
};
type: "delete";
}
| {
payload: IUpdateCommentRefPayload;
type: "updateRef";
}
| {
payload: {
commentId: string;
resolved: boolean;
};
type: "resolve";
};
Type declaration
Defined in
packages/thread-comment/src/models/thread-comment.model.ts:22 (opens in a new tab)