summaryrefslogtreecommitdiffstats
path: root/src/schemas/mod.ts
diff options
context:
space:
mode:
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;