From 832590ee329a43b74cde0087f874aa68594cd46f Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 19 Oct 2026 02:58:05 -0400 Subject: notice now uses regular JS; TS type on blog --- src/pages/blog/[...slug].astro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pages/blog') diff --git a/src/pages/blog/[...slug].astro b/src/pages/blog/[...slug].astro index 8c8aea9..bd9ac7f 100644 --- a/src/pages/blog/[...slug].astro +++ b/src/pages/blog/[...slug].astro @@ -1,6 +1,6 @@ --- import Page from '../../layouts/BlogPost.astro'; -import { getEntry, getCollection, render } from 'astro:content'; +import { getCollection, CollectionEntry, getEntry, render } from 'astro:content'; import { formatDate } from "../../util"; export async function getStaticPaths() { @@ -10,6 +10,7 @@ export async function getStaticPaths() { props: { post }, })) } +type Props = CollectionEntry<'blog'>; const { slug } = Astro.params; -- cgit v1.2.3