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/app.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/app.ts')
| -rw-r--r-- | src/ts/types/app.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ts/types/app.ts b/src/ts/types/app.ts index b2a5cd6..60dd4b8 100644 --- a/src/ts/types/app.ts +++ b/src/ts/types/app.ts @@ -1,16 +1,16 @@ import { NextPage } from 'next'; import { AppProps } from 'next/app'; -import { ComponentType, ReactElement, ReactNode } from 'react'; +import { ReactElement, ReactNode } from 'react'; import { PostBy } from './articles'; import { AllPostsSlug, RawPostsList } from './blog'; import { CommentData, CreateComment } from './comments'; import { ContactData, SendEmail } from './contact'; import { - AllSubjects, - AllSubjectsSlug, + AllTopics, + AllTopicsSlug, AllThematics, AllThematicsSlug, - SubjectBy, + TopicBy, ThematicBy, } from './taxonomies'; @@ -30,7 +30,7 @@ export type AppPropsWithLayout = AppProps & { // API //============================================================================== -export type VariablesType<T> = T extends PostBy | SubjectBy | ThematicBy +export type VariablesType<T> = T extends PostBy | TopicBy | ThematicBy ? Slug : T extends RawPostsList ? CursorPagination @@ -42,13 +42,13 @@ export type VariablesType<T> = T extends PostBy | SubjectBy | ThematicBy export type RequestType = | AllPostsSlug - | AllSubjects - | AllSubjectsSlug + | AllTopics + | AllTopicsSlug | AllThematics | AllThematicsSlug | CreateComment | PostBy - | SubjectBy + | TopicBy | ThematicBy | RawPostsList | SendEmail; |
