Update Content type to AstroComponentFactory

This commit is contained in:
prototypa
2023-08-30 14:05:18 -04:00
parent 1f56b3f079
commit ba6421bb18

4
src/types.d.ts vendored
View File

@ -1,3 +1,5 @@
import type { AstroComponentFactory } from "astro/runtime/server/index.js";
export interface Post {
/** A unique ID number that identifies a post. */
id: string;
@ -34,7 +36,7 @@ export interface Post {
draft?: boolean;
/** */
Content?: unknown;
Content?: AstroComponentFactory;
content?: string;
/** */