From 163ef97f3149370ef86bdb6a3ad265b568e0b4f9 Mon Sep 17 00:00:00 2001 From: Xevion Date: Mon, 11 Mar 2024 00:04:44 -0500 Subject: [PATCH] Fix headings type issues --- src/components/TableOfContents.astro | 11 ++++++++--- src/layouts/Main.astro | 11 +++++++---- src/pages/[...slug].astro | 4 ++-- src/pages/index.astro | 20 +++++++++++--------- 4 files changed, 28 insertions(+), 18 deletions(-) diff --git a/src/components/TableOfContents.astro b/src/components/TableOfContents.astro index 174a1a4..b58b187 100644 --- a/src/components/TableOfContents.astro +++ b/src/components/TableOfContents.astro @@ -1,12 +1,17 @@ --- -const { headers } = Astro.props; +import type { MarkdownHeading } from 'astro'; + +interface Props { + headings: MarkdownHeading[]; +} +const { headings } = Astro.props; ---