Skip to content

Commit 957bc8e

Browse files
committed
规范type名称
1 parent fdaa7c7 commit 957bc8e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pages/blog/[page].astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const {
4040
} = Astro.props;
4141
const { Content } = await render(rawContent);
4242
43-
const articleHeadings = headings as Headings
43+
const articleHeadings = headings as Heading[]
4444
4545
const MIN_READ_COUNT = 350;
4646
const readTimeMin = Math.ceil(fontNum / MIN_READ_COUNT);

src/utils/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type Headings = {
1+
type Heading = {
22
depth: number;
33
slug: string;
44
text: string;

0 commit comments

Comments
 (0)