summaryrefslogtreecommitdiffstats
path: root/src/ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-07 12:01:08 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-07 12:31:56 +0100
commitb4e12398fbeb642c12649dcccdf4d5cdefa471e3 (patch)
tree0744b64eed4214813e70ed26ad4a18058a4a46af /src/ts
parent722ec20bad64d8c69b173c163011d37ad0b55591 (diff)
chore: add a widget to list all blog thematics
Diffstat (limited to 'src/ts')
-rw-r--r--src/ts/types/app.ts2
-rw-r--r--src/ts/types/taxonomies.ts6
2 files changed, 8 insertions, 0 deletions
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> = 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[];