@mocanvas/editor · interface

TLComment

interface TLComment

One message in a thread.


Properties · 10

authorId: UserId
createdAt: number
readonly id: TLCommentId
index: IndexKey

Ordering within the thread. A fractional index rather than a timestamp so that two people posting at once cannot collide, and so a comment can be moved without renumbering the rest.

isEdited: boolean

Whether the body has been edited since it was posted.

meta: JsonObject
richText: {

The body, as a rich-text document. Plain text is a rich-text document too.

threadId: TLCommentThreadId
readonly typeName: "comment"
updatedAt: number

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.