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; content: string;
readingTime: string; readingTime: string;
headings: Heading[]; headings: Heading[];
wip?: boolean; wip: boolean;
} }
export interface PostMeta { export interface PostMeta {
@@ -28,7 +28,7 @@ export interface PostMeta {
title: string; title: string;
description: string; description: string;
readingTime: string; readingTime: string;
wip?: boolean; wip: boolean;
} }
function extractHeadings(content: string): Heading[] { function extractHeadings(content: string): Heading[] {