mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
17 lines
491 B
TypeScript
17 lines
491 B
TypeScript
import { z } from 'zod'
|
|
import { stageSchema } from './stage.js'
|
|
import { requirementsSchema } from './requirements.js'
|
|
import { globalExceptionSchema } from './exception.js'
|
|
|
|
export const questSchema = z.object({
|
|
id: z.string(),
|
|
title: z.string(),
|
|
image: z.string(),
|
|
instruction: z.string(),
|
|
requirements: requirementsSchema.default([]),
|
|
stages: z.array(stageSchema),
|
|
exceptions: z.array(globalExceptionSchema).optional(),
|
|
})
|
|
|
|
export type IQuest = z.infer<typeof questSchema>
|