fix: make wip field non-optional to match runtime guarantee

This commit is contained in:
2026-03-31 02:23:47 +02:00
parent 3bbcd6f345
commit 71c1c49e8f

View File

@@ -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[] {