diff options
Diffstat (limited to 'src/ts/types/app.ts')
| -rw-r--r-- | src/ts/types/app.ts | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/ts/types/app.ts b/src/ts/types/app.ts index e1d8917..2a1c9fc 100644 --- a/src/ts/types/app.ts +++ b/src/ts/types/app.ts @@ -5,8 +5,6 @@ import { PostBy } from './articles'; import { AllPostsSlug, RawPostsList } from './blog'; import { CommentData, CreateComment } from './comments'; import { ContactData, SendEmail } from './contact'; -import { HomePageBy } from './homepage'; -import { PageBy } from './pages'; import { AllSubjectsSlug, AllThematicsSlug, @@ -30,11 +28,7 @@ export type AppPropsWithLayout = AppProps & { // API //============================================================================== -export type VariablesType<T> = T extends - | PageBy - | PostBy - | SubjectBy - | ThematicBy +export type VariablesType<T> = T extends PostBy | SubjectBy | ThematicBy ? Slug : T extends RawPostsList ? CursorPagination @@ -49,8 +43,6 @@ export type RequestType = | AllSubjectsSlug | AllThematicsSlug | CreateComment - | HomePageBy - | PageBy | PostBy | SubjectBy | ThematicBy @@ -83,6 +75,12 @@ export type Heading = { title: string; }; +export type Meta = { + title: string; + publishedOn: string; + updatedOn: string; +}; + export type PageInfo = { endCursor: string; hasNextPage: boolean; |
