diff options
Diffstat (limited to 'src/schemas/misc.ts')
| -rw-r--r-- | src/schemas/misc.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/schemas/misc.ts b/src/schemas/misc.ts new file mode 100644 index 0000000..e86df72 --- /dev/null +++ b/src/schemas/misc.ts | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | import { type } from "arktype"; | ||
| 2 | |||
| 3 | export const miscSchema = type.or( | ||
| 4 | { | ||
| 5 | type: "'home'", | ||
| 6 | title: "string", | ||
| 7 | description: "string", | ||
| 8 | }, | ||
| 9 | { | ||
| 10 | type: "'releases-index'", | ||
| 11 | title: "string", | ||
| 12 | description: "string", | ||
| 13 | }, | ||
| 14 | ); | ||
| 15 | |||
| 16 | export type Misc = typeof miscSchema.infer; | ||
