From dd8f5543bb5e5f23bf2e02429c82e7f5f3df5c3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Mon, 23 Sep 2024 14:03:06 +0200 Subject: [PATCH] Import ColectionEntry as type --- src/components/PostList.astro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/PostList.astro b/src/components/PostList.astro index eaaced6..7f1dcff 100644 --- a/src/components/PostList.astro +++ b/src/components/PostList.astro @@ -1,5 +1,6 @@ --- -import { CollectionEntry, getCollection } from 'astro:content'; +import type { CollectionEntry } from 'astro:content'; +import { getCollection } from 'astro:content'; export interface Props { filterFn?: (entry: CollectionEntry<'blog'>) => unknown;