@mocanvas/editor · interface

TLCommentReaction

interface TLCommentReaction

One person's reaction to one comment.

A record per (person, emoji) pair rather than a count on the comment: a count cannot be merged when two people react at the same time, and it cannot answer "did I already react?" without a second field.


Properties · 7

commentId: TLCommentId
createdAt: number
emoji: string

The emoji, as a string. Not restricted: any emoji a host allows.

readonly id: TLCommentReactionId
meta: JsonObject
readonly typeName: "comment_reaction"
userId: UserId

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.