From b4e12398fbeb642c12649dcccdf4d5cdefa471e3 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 7 Jan 2022 12:01:08 +0100 Subject: chore: add a widget to list all blog thematics --- src/ts/types/app.ts | 2 ++ src/ts/types/taxonomies.ts | 6 ++++++ 2 files changed, 8 insertions(+) (limited to 'src/ts') diff --git a/src/ts/types/app.ts b/src/ts/types/app.ts index c495367..7220ddd 100644 --- a/src/ts/types/app.ts +++ b/src/ts/types/app.ts @@ -7,6 +7,7 @@ import { CommentData, CreateComment } from './comments'; import { ContactData, SendEmail } from './contact'; import { AllSubjectsSlug, + AllThematics, AllThematicsSlug, SubjectBy, ThematicBy, @@ -41,6 +42,7 @@ export type VariablesType = T extends PostBy | SubjectBy | ThematicBy export type RequestType = | AllPostsSlug | AllSubjectsSlug + | AllThematics | AllThematicsSlug | CreateComment | PostBy diff --git a/src/ts/types/taxonomies.ts b/src/ts/types/taxonomies.ts index 71eb20a..32e1f15 100644 --- a/src/ts/types/taxonomies.ts +++ b/src/ts/types/taxonomies.ts @@ -66,6 +66,12 @@ export type Thematic = Taxonomy; export type ThematicPreview = TaxonomyPreview; +export type AllThematics = { + thematics: { + nodes: ThematicPreview[]; + }; +}; + export type RawThematic = TaxonomyPreview & { acfThematics: { postsInThematic: RawArticlePreview[]; -- cgit v1.2.3