diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-01-23 00:20:08 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-01-23 00:24:39 +0100 |
| commit | 368fbbf83b913b90cef9dfbe4288e148d589d033 (patch) | |
| tree | e86d6006dec67ffe485cbab5141609759ce7d501 /src/ts/types/articles.ts | |
| parent | 6d514259dd5e60af83b42f938ea9f6b017b7377f (diff) | |
refactor: rename all subject occurrences into topic
I change the name in graphql endpoint, so I decided to repercute this
change here.
Diffstat (limited to 'src/ts/types/articles.ts')
| -rw-r--r-- | src/ts/types/articles.ts | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/ts/types/articles.ts b/src/ts/types/articles.ts index 1fb3ec5..da86e10 100644 --- a/src/ts/types/articles.ts +++ b/src/ts/types/articles.ts @@ -2,11 +2,7 @@ import { ContentParts, Dates } from './app'; import { Comment, CommentsNode } from './comments'; import { Cover, RawCover } from './cover'; import { SEO } from './seo'; -import { - RawSubjectPreview, - SubjectPreview, - ThematicPreview, -} from './taxonomies'; +import { RawTopicPreview, TopicPreview, ThematicPreview } from './taxonomies'; export type ArticleAuthor = { firstName: string; @@ -15,12 +11,12 @@ export type ArticleAuthor = { }; export type RawACFPosts = { - postsInSubject: RawSubjectPreview[] | null; + postsInTopic: RawTopicPreview[] | null; postsInThematic: ThematicPreview[] | null; }; export type ACFPosts = { - postsInSubject: SubjectPreview[] | null; + postsInTopic: TopicPreview[] | null; postsInThematic: ThematicPreview[] | null; }; @@ -28,7 +24,7 @@ export type ArticleMeta = { author?: ArticleAuthor; commentCount?: number; dates?: Dates; - subjects?: SubjectPreview[]; + topics?: TopicPreview[]; thematics?: ThematicPreview[]; website?: string; }; @@ -44,7 +40,7 @@ export type Article = { id: string; intro: string; seo: SEO; - subjects: SubjectPreview[] | []; + topics: TopicPreview[] | []; thematics: ThematicPreview[] | []; title: string; }; @@ -64,7 +60,7 @@ export type RawArticle = Pick< export type ArticlePreview = Pick< Article, - 'commentCount' | 'dates' | 'id' | 'intro' | 'subjects' | 'thematics' | 'title' + 'commentCount' | 'dates' | 'id' | 'intro' | 'topics' | 'thematics' | 'title' > & { featuredImage: Cover; slug: string }; export type RawArticlePreview = Pick< |
