Skip to content

Commit ffea9f6

Browse files
committedFeb 28, 2025·
Update the documentation
1 parent 595560a commit ffea9f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/comment.ts

+4
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ export class Comment {
8686
});
8787
}
8888

89+
/**
90+
* Returns a JSON representation of this object.
91+
* @returns The JSON representation of this object.
92+
*/
8993
toJSON(): Record<string, any> {
9094
const map = this.author ? this.author.toJSON() : {};
9195
if (this.content) map.comment_content = this.content;

0 commit comments

Comments
 (0)
Please sign in to comment.