API Reference
@univerjs
@univerjs/thread-comment
type-aliases
Commentupdate

@univerjs/thread-comment v0.4.2Docs


Type Alias: CommentUpdate

type CommentUpdate: {
  silent: boolean;
  subUnitId: string;
  unitId: string;
 } & 
  | {
  isRoot: boolean;
  payload: IThreadComment;
  type: "add";
 }
  | {
  payload: IUpdateCommentPayload;
  type: "update";
 }
  | {
  payload: {
     comment: IThreadComment;
     commentId: string;
     isRoot: boolean;
    };
  type: "delete";
 }
  | {
  payload: IUpdateCommentRefPayload;
  threadId: string;
  type: "updateRef";
 }
  | {
  payload: {
     commentId: string;
     resolved: boolean;
    };
  type: "resolve";
 }
  | {
  payload: IThreadComment;
  type: "syncUpdate";
};

Type declaration

NameTypeDefined in
silentbooleanpackages/thread-comment/src/models/thread-comment.model.ts:27 (opens in a new tab)
subUnitIdstringpackages/thread-comment/src/models/thread-comment.model.ts:26 (opens in a new tab)
unitIdstringpackages/thread-comment/src/models/thread-comment.model.ts:25 (opens in a new tab)

Defined in

packages/thread-comment/src/models/thread-comment.model.ts:24 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.