aboutsummaryrefslogtreecommitdiffstats
path: root/src/ts/types/comments.ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-12-15 18:18:49 +0100
committerArmand Philippot <git@armandphilippot.com>2021-12-15 18:18:49 +0100
commit102121498b45ef221191401f6216260f072f78a9 (patch)
treefb9ef1e648929b24bdbeefc719b5831458ef1a4b /src/ts/types/comments.ts
parent0bc323a777a607090af87636026f668104cf8a0c (diff)
chore: create single post view
Diffstat (limited to 'src/ts/types/comments.ts')
-rw-r--r--src/ts/types/comments.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ts/types/comments.ts b/src/ts/types/comments.ts
new file mode 100644
index 0000000..b196142
--- /dev/null
+++ b/src/ts/types/comments.ts
@@ -0,0 +1,18 @@
+export type CommentAuthor = {
+ gravatarUrl: string;
+ name: string;
+ url: string;
+};
+
+export type Comment = {
+ approved: '';
+ author: CommentAuthor;
+ commentId: number;
+ content: string;
+ date: string;
+ id: string;
+};
+
+export type CommentsResponse = {
+ nodes: Comment[];
+};