From 71c1c49e8fee1c427edaceabe3f8714dfaeb3f9f Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Tue, 31 Mar 2026 02:23:47 +0200 Subject: [PATCH] fix: make wip field non-optional to match runtime guarantee --- lib/posts.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/posts.ts b/lib/posts.ts index fa621ed..aec81b4 100644 --- a/lib/posts.ts +++ b/lib/posts.ts @@ -19,7 +19,7 @@ export interface PostData { content: string; readingTime: string; headings: Heading[]; - wip?: boolean; + wip: boolean; } export interface PostMeta { @@ -28,7 +28,7 @@ export interface PostMeta { title: string; description: string; readingTime: string; - wip?: boolean; + wip: boolean; } function extractHeadings(content: string): Heading[] {