Skip to content

Comment

type Comment = {
author: CommentAuthor;
body: string;
createdAt: number;
edited: boolean;
id: string;
threadId: string;
updatedAt: number;
};

Defined in: comments/types.ts:19

A single comment — either the opening comment of a thread or a reply.

PropertyTypeDescriptionDefined in
authorCommentAuthor-comments/types.ts:22
bodystring-comments/types.ts:23
createdAtnumberWall-clock creation time (ms). For display/sort only — ordering across peers uses the event log’s logical clock, not this.comments/types.ts:26
editedbooleanTrue once the comment’s last edit was an edit (vs. its original post).comments/types.ts:30
idstring-comments/types.ts:20
threadIdstring-comments/types.ts:21
updatedAtnumberWall-clock time of the last edit (ms); equals createdAt if never edited.comments/types.ts:28