From 655b910b6a4e29831dddf63fb3cf4903e7d06214 Mon Sep 17 00:00:00 2001 From: Maksim Valiantisuk Date: Tue, 21 Mar 2023 13:21:06 +0100 Subject: [PATCH] add astro type for Post["Content"] --- src/types.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 8191455..22f2862 100644 --- a/src/types.ts +++ b/src/types.ts @@ -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; author?: string; - Content: unknown; + Content: AstroComponentFactory; content?: string; readingTime?: number;