Import ColectionEntry as type

This commit is contained in:
Maciej Pędzich 2024-09-23 14:03:06 +02:00
parent d950a77a53
commit dd8f5543bb
Signed by: maciejpedzich
GPG Key ID: CE4A303D84882F0D

View File

@ -1,5 +1,6 @@
--- ---
import { CollectionEntry, getCollection } from 'astro:content'; import type { CollectionEntry } from 'astro:content';
import { getCollection } from 'astro:content';
export interface Props { export interface Props {
filterFn?: (entry: CollectionEntry<'blog'>) => unknown; filterFn?: (entry: CollectionEntry<'blog'>) => unknown;