Skip to content

UseCommentsReturn

reference
1 min readUpdated

Kind: Interface

Source: atloria-monorepo/packages/ui-react/src/hooks/useComments.ts

Return type for useComments hook

Properties

PropertyType
commentsCommentWithUser[]
loadingboolean
error`Error
addComment(dto: CreateCommentDto) => Promise<CommentWithUser>
updateComment(commentId: string, content: string) => Promise<CommentWithUser>
deleteComment(commentId: string) => Promise<void>
resolveComment(commentId: string) => Promise<CommentWithUser>
unresolveComment(commentId: string) => Promise<CommentWithUser>
addReply(parentCommentId: string, content: string) => Promise<CommentWithUser>
refresh() => Promise<void>

Was this page helpful?

Download as PDF