@replyke/core
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
8 lines (7 loc) • 424 B
TypeScript
import { EntityCommentsTree } from "../interfaces/EntityCommentsTree";
/**
* Reddit-style deletion: instead of removing the comment from the tree,
* mark it as user-deleted by clearing content fields and setting userDeletedAt.
* The comment remains visible as a placeholder so children stay intact.
*/
export declare function markCommentAsDeletedInTree(state: EntityCommentsTree, commentId: string): EntityCommentsTree;