Skip to content

basalt / comments/src / CommentNode

Interface: CommentNode ​

Defined in: comments/src/comments.ts:77

A comment plus its nested replies.

Extends ​

Properties ​

authorId ​

> authorId: string

Defined in: comments/src/store.ts:9

Inherited from ​

Comment.authorId


body ​

> body: string

Defined in: comments/src/store.ts:10

Inherited from ​

Comment.body


createdAt ​

> createdAt: number

Defined in: comments/src/store.ts:16

Inherited from ​

Comment.createdAt


editedAt? ​

> optional editedAt?: number

Defined in: comments/src/store.ts:15

Inherited from ​

Comment.editedAt


id ​

> id: string

Defined in: comments/src/store.ts:3

Inherited from ​

Comment.id


mentions ​

> mentions: string[]

Defined in: comments/src/store.ts:12

User ids extracted from @mentions in the body.

Inherited from ​

Comment.mentions


parentId? ​

> optional parentId?: string

Defined in: comments/src/store.ts:8

Set when this comment is a reply to another.

Inherited from ​

Comment.parentId


replies ​

> replies: CommentNode[]

Defined in: comments/src/comments.ts:78


resolvedAt? ​

> optional resolvedAt?: number

Defined in: comments/src/store.ts:13

Inherited from ​

Comment.resolvedAt


resolvedBy? ​

> optional resolvedBy?: string

Defined in: comments/src/store.ts:14

Inherited from ​

Comment.resolvedBy


resourceId ​

> resourceId: string

Defined in: comments/src/store.ts:6

Inherited from ​

Comment.resourceId


resourceType ​

> resourceType: string

Defined in: comments/src/store.ts:5

Inherited from ​

Comment.resourceType


tenantId ​

> tenantId: string

Defined in: comments/src/store.ts:4

Inherited from ​

Comment.tenantId

Released under the MIT License.