adjusted comment object to allow for null and parent comment id
parent
be1dd71f73
commit
fe1ca738c3
|
@ -25,26 +25,26 @@
|
||||||
* @property {number} upvotes - The number of upvotes the comment has received.
|
* @property {number} upvotes - The number of upvotes the comment has received.
|
||||||
*/
|
*/
|
||||||
export type Comment = {
|
export type Comment = {
|
||||||
author_id: number;
|
author_id: number;
|
||||||
author_name: string;
|
author_name: string;
|
||||||
body: string;
|
body: string;
|
||||||
body_html: string;
|
body_html: string;
|
||||||
created_utc: number;
|
created_utc: number;
|
||||||
deleted_utc: number;
|
deleted_utc: number;
|
||||||
distinguished: boolean;
|
distinguished: boolean;
|
||||||
downvotes: number;
|
downvotes: number;
|
||||||
edited_utc: number;
|
edited_utc: number;
|
||||||
id: number;
|
id: number;
|
||||||
is_banned: boolean;
|
is_banned: boolean;
|
||||||
is_bot: boolean;
|
is_bot: boolean;
|
||||||
is_nsfw: boolean;
|
is_nsfw: boolean;
|
||||||
level: number;
|
level: number;
|
||||||
permalink: string;
|
permalink: string;
|
||||||
pinned: string;
|
pinned: string | null;
|
||||||
post_id: number;
|
parent_comment_id?: number | null;
|
||||||
replies: number[];
|
post_id: number;
|
||||||
reports: Record<string, unknown>;
|
replies: number[];
|
||||||
score: number;
|
reports: Record<string, unknown>;
|
||||||
upvotes: number;
|
score: number;
|
||||||
};
|
upvotes: number;
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue