Skip to content

Commit 4ea5598

Browse files
committed
type
1 parent d033a47 commit 4ea5598

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/TutorialsGrid.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { ComponentProps } from "astro/types";
1010
import { Badge } from "@astrojs/starlight/components";
1111
1212
type Props = z.infer<typeof props>;
13-
type Badge = ComponentProps<typeof Badge>;
13+
type BadgeType = ComponentProps<typeof Badge>;
1414
1515
const props = z.object({
1616
product: reference("products").optional(),
@@ -95,7 +95,7 @@ const difficulties = {
9595
const spotlight =
9696
tutorial.collection === "docs" && tutorial.data.spotlight;
9797

98-
const badges: Badge[] = [
98+
const badges: BadgeType[] = [
9999
{
100100
text: difficulty,
101101
variant: difficulties[difficulty],

0 commit comments

Comments
 (0)