aboutsummaryrefslogtreecommitdiffstats
path: root/src/ts/types/articles.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/ts/types/articles.ts')
-rw-r--r--src/ts/types/articles.ts13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/ts/types/articles.ts b/src/ts/types/articles.ts
index e6a40ef..dc5bbe4 100644
--- a/src/ts/types/articles.ts
+++ b/src/ts/types/articles.ts
@@ -2,7 +2,11 @@ import { ContentParts, Dates } from './app';
import { Comment, CommentsNode } from './comments';
import { Cover, RawCover } from './cover';
import { SEO } from './seo';
-import { SubjectPreview, ThematicPreview } from './taxonomies';
+import {
+ RawSubjectPreview,
+ SubjectPreview,
+ ThematicPreview,
+} from './taxonomies';
export type ArticleAuthor = {
firstName: string;
@@ -10,6 +14,11 @@ export type ArticleAuthor = {
name: string;
};
+export type RawACFPosts = {
+ postsInSubject: RawSubjectPreview[] | null;
+ postsInThematic: ThematicPreview[] | null;
+};
+
export type ACFPosts = {
postsInSubject: SubjectPreview[] | null;
postsInThematic: ThematicPreview[] | null;
@@ -34,7 +43,7 @@ export type RawArticle = Pick<
Article,
'commentCount' | 'databaseId' | 'id' | 'seo' | 'title'
> & {
- acfPosts: ACFPosts;
+ acfPosts: RawACFPosts;
author: { node: ArticleAuthor };
comments: CommentsNode;
contentParts: ContentParts;