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 6d37d72 commit 710dd0eCopy full SHA for 710dd0e
2025/src/components/Sponsors/companies.astro
@@ -2,6 +2,7 @@
2
import { getCollection } from "astro:content";
3
import Company from "./Company.astro";
4
import Heading from "../Heading.astro";
5
+import type { CollectionEntry } from "astro:content";
6
7
const sponsorsData = await getCollection("sponsors");
8
@@ -18,7 +19,12 @@ const sponsorsByRank = sponsors.reduce(
18
19
{} as Record<string, typeof sponsors>,
20
);
21
-const rankOrder = ["platinum", "gold", "silver", "bronze"];
22
+const rankOrder = [
23
+ "platinum",
24
+ "gold",
25
+ "silver",
26
+ "bronze",
27
+] as CollectionEntry<"sponsors">["data"]["rank"][];
28
29
const rankNameMap = {
30
platinum: "プラチナ",
0 commit comments