Turns the rows the comment service reads from comments into the Comment the comment routes send.

Functions

f
commentRowToApi(row: CommentRow): Comment

Converts row to the Comment the comment routes send and the WebSocket broadcasts.

f
isCommentRow(obj: unknown): obj is CommentRow

Checks whether a row node:sqlite returned is a CommentRow.

Interfaces

I
CommentRow

Returned by the comment service's SELECTs on comments, joined with users for the author_ columns.