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.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
author | CommentAuthor | - | comments/types.ts:22 |
body | string | - | comments/types.ts:23 |
createdAt | number | Wall-clock creation time (ms). For display/sort only — ordering across peers uses the event log’s logical clock, not this. | comments/types.ts:26 |
edited | boolean | True once the comment’s last edit was an edit (vs. its original post). | comments/types.ts:30 |
id | string | - | comments/types.ts:20 |
threadId | string | - | comments/types.ts:21 |
updatedAt | number | Wall-clock time of the last edit (ms); equals createdAt if never edited. | comments/types.ts:28 |