From 34e216546151eaf8a0a3cbb0bc8b65dae4c63bf2 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 23 May 2022 14:07:02 +0200 Subject: refactor: reduce the number of data transformation --- src/ts/types/raw-data.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/ts/types/raw-data.ts') 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>; + author?: NodeResponse>; contentParts: ContentParts; databaseId: number; date: string; -- cgit v1.2.3