API Reference
@univerjs
@univerjs/thread-comment
interfaces
Ithreadcommentdatasource

@univerjs/thread-comment v0.4.2Docs


Interface: IThreadCommentDataSource

Properties

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

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