mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
10 lines
243 B
TypeScript
10 lines
243 B
TypeScript
import { z } from 'zod'
|
|
|
|
export const responseSchema = z.object({
|
|
type: z.enum(['narrative', 'dialogue']).default('narrative'),
|
|
content: z.string(),
|
|
hint: z.string().optional(),
|
|
})
|
|
|
|
export type IResponse = z.infer<typeof responseSchema>
|