Skip to content

Commit 022de40

Browse files
committed
Fix typecheck warnings (shown in verbose only)
1 parent 44908cb commit 022de40

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/components/showcase/ShowcasePostCards.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
import { getCollection } from "astro:content";
3-
import { formatDate, postUrl, slugify, withBase } from "../../lib/utils";
3+
import { formatDate, postUrl, withBase } from "../../lib/utils";
44
55
const allPosts = await getCollection("posts");
66
const recentPosts = allPosts

src/pages/[year]/[month]/[slug].astro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
import type { InferGetStaticPropsType } from "astro";
32
import BlogPostLayout from "../../../layouts/BlogPostLayout.astro";
43
import { getCollection, render } from "astro:content";
54
@@ -22,7 +21,6 @@ export async function getStaticPaths() {
2221
});
2322
}
2423
25-
type Props = InferGetStaticPropsType<typeof getStaticPaths>;
2624
const { post } = Astro.props;
2725
const { Content, remarkPluginFrontmatter } = await render(post);
2826
const references = (remarkPluginFrontmatter?.references ?? []) as Array<{ type: string; label: string; url: string }>;

0 commit comments

Comments
 (0)