Interface: CommentThread
@roomful/core / CommentThread
Interface: CommentThread
Section titled “Interface: CommentThread”Defined in: packages/core/src/types.ts:1830
A collaborative comment thread: a root comment, its anchor, and any replies. Threads are persistent collaborative state — they sync across peers and survive late joins, unlike the ephemeral presence-style primitives.
Properties
Section titled “Properties”anchor
Section titled “anchor”anchor:
CommentAnchor
Defined in: packages/core/src/types.ts:1839
Where the thread is anchored in the annotated document.
author
Section titled “author”author:
Peer
Defined in: packages/core/src/types.ts:1844
The peer that opened the thread.
createdAt
Section titled “createdAt”createdAt:
number
Defined in: packages/core/src/types.ts:1854
The epoch-millisecond timestamp when the thread was created.
id:
string
Defined in: packages/core/src/types.ts:1834
Identifies the thread within the room.
replies
Section titled “replies”replies:
Comment[]
Defined in: packages/core/src/types.ts:1864
The replies appended to the thread, in creation order.
resolved
Section titled “resolved”resolved:
boolean
Defined in: packages/core/src/types.ts:1859
Whether the thread has been resolved.
text:
string
Defined in: packages/core/src/types.ts:1849
The root comment body.