diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-12-17 19:21:11 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-12-17 19:21:11 +0100 |
| commit | 37bc9d25deecb04b7970881d46551d5b33fe88df (patch) | |
| tree | 44e03f3ab883164c3916a606521b07461c05e40d /src/ts | |
| parent | cf195f8c6b4195423dd257a99afb904673d87d25 (diff) | |
chore: add meta to single posts
Diffstat (limited to 'src/ts')
| -rw-r--r-- | src/ts/types/articles.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ts/types/articles.ts b/src/ts/types/articles.ts index 0bb85c8..afaa3e3 100644 --- a/src/ts/types/articles.ts +++ b/src/ts/types/articles.ts @@ -8,6 +8,12 @@ export type ArticleDates = { update: string; }; +export type ArticleAuthor = { + firstName: string; + lastName: string; + name: string; +}; + export type ArticlePreviewResponse = { acfPosts: { postsInSubject: SubjectPreview[] | null; @@ -40,6 +46,9 @@ export type ArticlePreview = { }; export type ArticleResponse = ArticlePreviewResponse & { + author: { + node: ArticleAuthor; + }; comments: CommentsResponse; contentParts: { afterMore: string; @@ -48,6 +57,7 @@ export type ArticleResponse = ArticlePreviewResponse & { }; export type Article = ArticlePreview & { + author: ArticleAuthor; comments: Comment[]; intro: string; seo: SEO; |
