mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
wip: replace packages with pure files
This commit is contained in:
1 parent
2d95ca382f
commit
87b8ca5d04
112 files changed
+740
-522
No files matched your search
@@ -0,0 +1,16 @@
|
||||
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>
|
||||
Reference in new issue
Block a user