CreateThreadInput
type CreateThreadInput = { author: CommentAuthor; body: string; id?: string;};Defined in: comments/store.ts:33
Inputs to open a new thread (and its first comment) in one shot.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
author | CommentAuthor | - | comments/store.ts:38 |
body | string | - | comments/store.ts:39 |
id? | string | Pre-chosen thread id — pass this to keep the doc mark and the store in lock-step (apply addCommentMark(tx, range, threadId) with the same id). Auto-generated if omitted. | comments/store.ts:37 |