master
1import type { ImageMetadata } from 'astro';
2import type { RenderedContent } from 'astro:content';
3
4export type BlogPostData = {
5 body: string;
6 title: string;
7 slug: string;
8 published: Date;
9 description: string;
10 tags: string[];
11 draft?: boolean;
12 cover?: ImageMetadata;
13 category?: string;
14 comment?: boolean;
15};
16
17export type BlogPost = {
18 id: string;
19 body: string;
20 data: BlogPostData;
21 rendered?: RenderedContent & {
22 headings?: MarkdownHeading[];
23 // eslint-disable-next-line @typescript-eslint/no-explicit-any
24 frontmatter?: Record<string, any>;
25 };
26 filePath?: string;
27};