Skip to content

Commit 193c9ab

Browse files
committed
fix check error
1 parent dce7f1e commit 193c9ab

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

src/components/WARPRelease.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type Props = z.infer<typeof props>;
99
1010
const props = z.object({
1111
header: z.string(),
12-
open: z.boolean().default(false),
12+
open: z.boolean().optional(),
1313
release: warpReleasesSchema,
1414
});
1515

src/components/WARPReleases.astro

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ import { sub } from "date-fns";
88
type Props = z.infer<typeof props>;
99
1010
const props = z.object({
11-
track: z.enum(["windows/ga", "windows/beta", "macos/ga", "macos/beta", "linux/ga"]),
11+
track: z.enum([
12+
"windows/ga",
13+
"windows/beta",
14+
"macos/ga",
15+
"macos/beta",
16+
"linux/ga",
17+
]),
1218
});
1319
1420
const { track } = props.parse(Astro.props);

src/content/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ export const collections = {
8080
}),
8181
"warp-releases": defineCollection({
8282
schema: warpReleasesSchema,
83-
type: "data",
84-
}),
83+
type: "data",
84+
}),
8585
"changelogs-next": defineCollection({
8686
schema: changelogsNextSchema,
8787
}),

0 commit comments

Comments
 (0)