summaryrefslogtreecommitdiffstats
path: root/src/schemas/mod.ts
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2026-07-22 19:40:59 +0200
committerVolpeon <git@volpeon.ink>2026-07-22 19:40:59 +0200
commitc1e28224aa2e1450031669d9a7e359b63e04687d (patch)
tree68f3d8905c763a91f68001d868197effa92adafa /src/schemas/mod.ts
downloadcorvos-website-c1e28224aa2e1450031669d9a7e359b63e04687d.tar.gz
corvos-website-c1e28224aa2e1450031669d9a7e359b63e04687d.tar.bz2
corvos-website-c1e28224aa2e1450031669d9a7e359b63e04687d.zip
Init
Diffstat (limited to 'src/schemas/mod.ts')
-rw-r--r--src/schemas/mod.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/schemas/mod.ts b/src/schemas/mod.ts
new file mode 100644
index 0000000..69d6c6f
--- /dev/null
+++ b/src/schemas/mod.ts
@@ -0,0 +1,8 @@
1import { type } from "arktype";
2
3import { miscSchema } from "$/schemas/misc.ts";
4import { releaseSchema } from "$/schemas/releases.ts";
5
6export const pageDataSchema = type.or(releaseSchema, miscSchema);
7
8export type PageData = typeof pageDataSchema.infer;