@univerjsthread-commentinterfacesIthreadcommentdatasource

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


Interface: IThreadCommentDataSource

Properties

PropertyTypeDescriptionDefined in
addComment(comment: IThreadComment) => Promise<IThreadComment>handler for add-comment, throw error means fail and stop the process.submodules/univer/packages/thread-comment/src/services/tc-datasource.service.ts:33
deleteComment(unitId: string, subUnitId: string, threadId: string, commentId: string) => Promise<boolean>handler for delete-comment, throw error means fail and stop the process.submodules/univer/packages/thread-comment/src/services/tc-datasource.service.ts:42
listComments(unitId: string, subUnitId: string, threadId: string[]) => Promise<IBaseComment[]>handler for batch-fetch-comment, throw error means fail and stop the process.submodules/univer/packages/thread-comment/src/services/tc-datasource.service.ts:46
resolveComment(comment: IThreadComment) => Promise<boolean>-submodules/univer/packages/thread-comment/src/services/tc-datasource.service.ts:38
saveCommentToSnapshot(comment: IThreadComment) => ThreadCommentJSON-submodules/univer/packages/thread-comment/src/services/tc-datasource.service.ts:47
updateComment(comment: IThreadComment) => Promise<boolean>handler for update-comment, throw error means fail and stop the process.submodules/univer/packages/thread-comment/src/services/tc-datasource.service.ts:37