aboutsummaryrefslogtreecommitdiffstats
path: root/src/ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-13 18:15:07 +0100
committerArmand Philippot <git@armandphilippot.com>2022-02-13 19:12:22 +0100
commit43f1fc3ce52e6ddd397853964c8868f2f4eee41d (patch)
tree1c631893cd79c4f2be048e4f7c36a4e2671e5f44 /src/ts
parent65bf38646c303399daf0766a10dc7893b78d8301 (diff)
chore: improve RSS feed generation time
Diffstat (limited to 'src/ts')
-rw-r--r--src/ts/types/app.ts9
-rw-r--r--src/ts/types/articles.ts8
2 files changed, 13 insertions, 4 deletions
diff --git a/src/ts/types/app.ts b/src/ts/types/app.ts
index 2c9a291..3edc8a0 100644
--- a/src/ts/types/app.ts
+++ b/src/ts/types/app.ts
@@ -1,7 +1,7 @@
import { NextPage } from 'next';
import { AppProps } from 'next/app';
import { ReactElement, ReactNode } from 'react';
-import { PostBy } from './articles';
+import { PostBy, TotalArticles } from './articles';
import { AllPostsSlug, RawPostsList } from './blog';
import { CommentData, CreateComment } from './comments';
import { ContactData, SendEmail } from './contact';
@@ -48,10 +48,11 @@ export type RequestType =
| AllThematicsSlug
| CreateComment
| PostBy
- | TopicBy
- | ThematicBy
| RawPostsList
- | SendEmail;
+ | SendEmail
+ | ThematicBy
+ | TopicBy
+ | TotalArticles;
//==============================================================================
// Globals
diff --git a/src/ts/types/articles.ts b/src/ts/types/articles.ts
index 5281e7e..75e5a1a 100644
--- a/src/ts/types/articles.ts
+++ b/src/ts/types/articles.ts
@@ -93,3 +93,11 @@ export type PostBy = {
export type ArticleProps = {
post: Article;
};
+
+export type TotalArticles = {
+ posts: {
+ pageInfo: {
+ total: number;
+ };
+ };
+};