@univerjsthread-commenttype-aliasesCommentupdate

@univerjs/thread-comment v0.5.0-beta.1Docs


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
silent?booleansubmodules/univer/packages/thread-comment/src/models/thread-comment.model.ts:27
subUnitIdstringsubmodules/univer/packages/thread-comment/src/models/thread-comment.model.ts:26
unitIdstringsubmodules/univer/packages/thread-comment/src/models/thread-comment.model.ts:25

Defined in

submodules/univer/packages/thread-comment/src/models/thread-comment.model.ts:24