diff options
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[]; +}; |
