File size: 361 Bytes
9816072 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import { z } from 'zod';
export const PolicyDataSchema = z.object({
zh: z.string(),
en: z.string(),
fr: z.string().optional(),
link: z.object({
zh: z.string(),
en: z.string().optional(),
fr: z.string().optional(),
}),
releaseDate: z.string(),
tags: z.array(z.string()),
});
export type PolicyData = z.infer<typeof PolicyDataSchema>;
|