Skip to content

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.

PropertyTypeDescriptionDefined in
authorCommentAuthor-comments/store.ts:38
bodystring-comments/store.ts:39
id?stringPre-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