diff options
Diffstat (limited to 'src/schemas/mod.ts')
| -rw-r--r-- | src/schemas/mod.ts | 8 |
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 @@ | |||
| 1 | import { type } from "arktype"; | ||
| 2 | |||
| 3 | import { miscSchema } from "$/schemas/misc.ts"; | ||
| 4 | import { releaseSchema } from "$/schemas/releases.ts"; | ||
| 5 | |||
| 6 | export const pageDataSchema = type.or(releaseSchema, miscSchema); | ||
| 7 | |||
| 8 | export type PageData = typeof pageDataSchema.infer; | ||
