From ba6421bb18a6e837979ff9950b52f4f809e8f2e6 Mon Sep 17 00:00:00 2001 From: prototypa Date: Wed, 30 Aug 2023 14:05:18 -0400 Subject: [PATCH] Update Content type to AstroComponentFactory --- src/types.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/types.d.ts b/src/types.d.ts index 8a89204..d23514a 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -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; /** */