aboutsummaryrefslogtreecommitdiffstats
path: root/src/ts/types/raw-data.ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-05-23 14:07:02 +0200
committerArmand Philippot <git@armandphilippot.com>2022-05-23 16:00:13 +0200
commit34e216546151eaf8a0a3cbb0bc8b65dae4c63bf2 (patch)
treebff34f8a1dc65f0559ddf851433f242edb092824 /src/ts/types/raw-data.ts
parent0f8f963ba3eccd7fd94785bf7fb216b6287cec57 (diff)
refactor: reduce the number of data transformation
Diffstat (limited to 'src/ts/types/raw-data.ts')
-rw-r--r--src/ts/types/raw-data.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ts/types/raw-data.ts b/src/ts/types/raw-data.ts
index ba6d596..dc3db90 100644
--- a/src/ts/types/raw-data.ts
+++ b/src/ts/types/raw-data.ts
@@ -25,7 +25,6 @@ export type ContentParts = {
};
export type Info = {
- readingTime: number;
wordsCount: number;
};
@@ -66,7 +65,7 @@ export type RawArticlePreview = Pick<
>;
export type RawPage = {
- author: NodeResponse<RawAuthor<'page'>>;
+ author?: NodeResponse<RawAuthor<'page'>>;
contentParts: ContentParts;
databaseId: number;
date: string;