Skip to content

Interface: CommentThread

@roomful/core


@roomful/core / 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.

anchor: CommentAnchor

Defined in: packages/core/src/types.ts:1839

Where the thread is anchored in the annotated document.


author: Peer

Defined in: packages/core/src/types.ts:1844

The peer that opened the thread.


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: Comment[]

Defined in: packages/core/src/types.ts:1864

The replies appended to the thread, in creation order.


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.