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; ---