From 3376c53b2ee91041d5eaa0f9274da0affd7d4a9d Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 12 Sep 2024 16:36:57 +0000 Subject: Refactor Astro components and layouts --- src/components/PostElement.astro | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/components/PostElement.astro') diff --git a/src/components/PostElement.astro b/src/components/PostElement.astro index 889cc47..2f98130 100644 --- a/src/components/PostElement.astro +++ b/src/components/PostElement.astro @@ -1,6 +1,11 @@ --- +import { type CollectionEntry } from "astro:content"; import dayjs from "dayjs"; +type Props = { + readonly post: CollectionEntry<"blog">; +}; + const { post } = Astro.props; --- -- cgit v1.2.3