@univerjsthread-commentinterfacesIthreadcommentdatasourceservice

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


Interface: IThreadCommentDataSourceService

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:61
dataSourceNullable<IThreadCommentDataSource>-submodules/univer/packages/thread-comment/src/services/tc-datasource.service.ts:51
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:73
getThreadComment(unitId: string, subUnitId: string, threadId: string) => Promise<Nullable<IBaseComment>>-submodules/univer/packages/thread-comment/src/services/tc-datasource.service.ts:75
listThreadComments(unitId: string, subUnitId: string, threadId: string[]) => Promise<false | IBaseComment[]>-submodules/univer/packages/thread-comment/src/services/tc-datasource.service.ts:76
resolveComment(comment: IThreadComment) => Promise<boolean>handler for resolve-comment, throw error means fail and stop the process.submodules/univer/packages/thread-comment/src/services/tc-datasource.service.ts:69
saveToSnapshot(unitComments: Record<string, IThreadComment[]>, unitId: string) => Record<string, ThreadCommentJSON[]>-submodules/univer/packages/thread-comment/src/services/tc-datasource.service.ts:74
syncUpdateMutationToCollabooleanshould sync update mutations to collaboration-serversubmodules/univer/packages/thread-comment/src/services/tc-datasource.service.ts:56
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:65