fix: make wip field non-optional to match runtime guarantee
This commit is contained in:
@@ -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[] {
|
||||
|
||||
Reference in New Issue
Block a user