add astro type for Post["Content"]

This commit is contained in:
Maksim Valiantisuk
2023-03-21 13:21:06 +01:00
parent 7f5656aa0c
commit 655b910b6a

View File

@ -1,3 +1,5 @@
import { AstroComponentFactory } from 'astro/dist/runtime/server';
export interface Post {
id: string;
slug: string;
@ -18,7 +20,7 @@ export interface Post {
tags?: Array<string>;
author?: string;
Content: unknown;
Content: AstroComponentFactory;
content?: string;
readingTime?: number;