aboutsummaryrefslogtreecommitdiffstats
path: root/src/ts/types/app.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/ts/types/app.ts')
-rw-r--r--src/ts/types/app.ts16
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;