fix: use CollectionEntry type where possible
This commit is contained in:
parent
aa26e7cd55
commit
82b68b9f11
8 changed files with 107 additions and 104 deletions
|
@ -1,8 +1,9 @@
|
|||
---
|
||||
import FormattedDate from "@components/FormattedDate.astro";
|
||||
import type { CollectionEntry } from "astro:content";
|
||||
|
||||
type Props = {
|
||||
collection: any;
|
||||
collection: CollectionEntry<"posts" | "projects">;
|
||||
};
|
||||
|
||||
const { collection } = Astro.props;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue