From 37bc9d25deecb04b7970881d46551d5b33fe88df Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 17 Dec 2021 19:21:11 +0100 Subject: chore: add meta to single posts --- src/ts/types/articles.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/ts') 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; -- cgit v1.2.3