diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-12-15 18:18:49 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-12-15 18:18:49 +0100 |
| commit | 102121498b45ef221191401f6216260f072f78a9 (patch) | |
| tree | fb9ef1e648929b24bdbeefc719b5831458ef1a4b /src/ts/types/comments.ts | |
| parent | 0bc323a777a607090af87636026f668104cf8a0c (diff) | |
chore: create single post view
Diffstat (limited to 'src/ts/types/comments.ts')
| -rw-r--r-- | src/ts/types/comments.ts | 18 |
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[]; +}; |
