aboutsummaryrefslogtreecommitdiffstats
path: root/src/ts/types/comments.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/ts/types/comments.ts')
-rw-r--r--src/ts/types/comments.ts18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/ts/types/comments.ts b/src/ts/types/comments.ts
index 36bd98c..aa3fac3 100644
--- a/src/ts/types/comments.ts
+++ b/src/ts/types/comments.ts
@@ -2,17 +2,9 @@
// Comments query
//==============================================================================
-export type CommentsByPostId = {
- postBy: {
- comments: {
- nodes: RawComment[];
- };
- };
-};
-
export type CommentAuthor = {
- gravatarUrl: string;
name: string;
+ gravatarUrl: string;
url: string;
};
@@ -23,12 +15,10 @@ export type RawCommentAuthor = {
export type Comment = {
approved: '';
author: CommentAuthor;
- commentId: number;
+ databaseId: number;
content: string;
date: string;
- id: string;
parentDatabaseId: number;
- parentId: string | null;
replies: Comment[];
};
@@ -40,6 +30,10 @@ export type CommentsNode = {
nodes: RawComment[];
};
+export type CommentsByPostId = {
+ comments: CommentsNode;
+};
+
//==============================================================================
// Comment mutations
//==============================================================================