@solarpunkltd/comment-system
Version:
A library for writing and reading comments from the Swarm network.
27 lines • 585 B
TypeScript
export interface Comment {
text: string;
messageId: string;
threadId?: string;
parent?: string;
flagged?: boolean;
reason?: string;
}
export interface UserComment {
message: Comment;
timestamp: number;
username: string;
address?: string;
}
export interface CommentNode {
comment: UserComment;
replies: CommentNode[];
}
export interface SingleComment {
comment: UserComment;
nextIndex?: number;
}
export interface CommentsWithIndex {
comments: UserComment[];
nextIndex: number;
}
//# sourceMappingURL=legacy.model.d.ts.map