adjusted comment object to allow for null and parent comment id

master
j 2024-04-07 22:01:29 -04:00
parent be1dd71f73
commit fe1ca738c3
1 changed files with 23 additions and 23 deletions

View File

@ -25,26 +25,26 @@
* @property {number} upvotes - The number of upvotes the comment has received.
*/
export type Comment = {
author_id: number;
author_name: string;
body: string;
body_html: string;
created_utc: number;
deleted_utc: number;
distinguished: boolean;
downvotes: number;
edited_utc: number;
id: number;
is_banned: boolean;
is_bot: boolean;
is_nsfw: boolean;
level: number;
permalink: string;
pinned: string;
post_id: number;
replies: number[];
reports: Record<string, unknown>;
score: number;
upvotes: number;
};
author_id: number;
author_name: string;
body: string;
body_html: string;
created_utc: number;
deleted_utc: number;
distinguished: boolean;
downvotes: number;
edited_utc: number;
id: number;
is_banned: boolean;
is_bot: boolean;
is_nsfw: boolean;
level: number;
permalink: string;
pinned: string | null;
parent_comment_id?: number | null;
post_id: number;
replies: number[];
reports: Record<string, unknown>;
score: number;
upvotes: number;
};