summaryrefslogtreecommitdiffstats
path: root/src/ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-12-16 19:30:32 +0100
committerArmand Philippot <git@armandphilippot.com>2021-12-16 19:30:32 +0100
commita8e8fc73498e85c0cc1692b7330aeb3567f4a1e6 (patch)
tree02e92ea4d892c1128930327bc56c5123009bb365 /src/ts
parent9a81ce60575403d5d3fc489f9b51d85e7108344b (diff)
chore: display year between blog posts
Diffstat (limited to 'src/ts')
-rw-r--r--src/ts/types/articles.ts4
-rw-r--r--src/ts/types/cover.ts4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ts/types/articles.ts b/src/ts/types/articles.ts
index 91703a2..0bb85c8 100644
--- a/src/ts/types/articles.ts
+++ b/src/ts/types/articles.ts
@@ -19,7 +19,7 @@ export type ArticlePreviewResponse = {
};
databaseId: number;
date: string;
- featuredImage: CoverResponse | null;
+ featuredImage: CoverResponse;
id: string;
modified: string;
slug: string;
@@ -31,7 +31,7 @@ export type ArticlePreview = {
content: string;
databaseId: number;
date: ArticleDates;
- featuredImage?: Cover | object;
+ featuredImage: Cover | null;
id: string;
slug: string;
subjects: SubjectPreview[] | [];
diff --git a/src/ts/types/cover.ts b/src/ts/types/cover.ts
index 165a26f..2a565ef 100644
--- a/src/ts/types/cover.ts
+++ b/src/ts/types/cover.ts
@@ -2,8 +2,8 @@ export type Cover = {
altText: string;
sourceUrl: string;
title: string;
-};
+} | null;
export type CoverResponse = {
node: Cover;
-};
+} | null;