Merge pull request #154 from AmadeusTwi/main

add astro type for Post["Content"]
This commit is contained in:
prototypa
2023-05-17 15:58:49 -04:00
committed by GitHub

View File

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