From c1e28224aa2e1450031669d9a7e359b63e04687d Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 22 Jul 2026 19:40:59 +0200 Subject: Init --- src/schemas/mod.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/schemas/mod.ts (limited to 'src/schemas/mod.ts') 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 @@ +import { type } from "arktype"; + +import { miscSchema } from "$/schemas/misc.ts"; +import { releaseSchema } from "$/schemas/releases.ts"; + +export const pageDataSchema = type.or(releaseSchema, miscSchema); + +export type PageData = typeof pageDataSchema.infer; -- cgit v1.3.1