We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdaa7c7 commit 957bc8eCopy full SHA for 957bc8e
src/pages/blog/[page].astro
@@ -40,7 +40,7 @@ const {
40
} = Astro.props;
41
const { Content } = await render(rawContent);
42
43
-const articleHeadings = headings as Headings
+const articleHeadings = headings as Heading[]
44
45
const MIN_READ_COUNT = 350;
46
const readTimeMin = Math.ceil(fontNum / MIN_READ_COUNT);
src/utils/types.ts
@@ -1,4 +1,4 @@
1
-type Headings = {
+type Heading = {
2
depth: number;
3
slug: string;
4
text: string;
0 commit comments