diff options
Diffstat (limited to 'src/ts')
| -rw-r--r-- | src/ts/types/app.ts | 2 | ||||
| -rw-r--r-- | src/ts/types/taxonomies.ts | 6 |
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[]; |
