15 lines
306 B
TypeScript
15 lines
306 B
TypeScript
import * as z from 'zod';
|
|
|
|
const Entry = z.strictObject({
|
|
home_story_trigger_id: z.int32(),
|
|
new_flag: z.literal(0).or(z.literal(1)),
|
|
});
|
|
|
|
export type Entry = z.infer<typeof Entry>;
|
|
|
|
export const Gallery = z.object({
|
|
talk_gallery_list: z.array(Entry),
|
|
});
|
|
|
|
export type Gallery = z.infer<typeof Gallery>;
|