UNPKG

mt-flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

57 lines (56 loc) 1.59 kB
/** * * 视图相关的schema 配置 */ import * as z from "zod"; export declare const modListItemchema: z.ZodObject<{ id: z.ZodOptional<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodOptional<z.ZodNumber>]>>; title: z.ZodString; }, "strip", z.ZodTypeAny, { title: string; id?: string | number | undefined; }, { title: string; id?: string | number | undefined; }>; export type ModListItem = z.infer<typeof modListItemchema>; export declare const commonListOutputSchema: z.ZodObject<{ items: z.ZodArray<z.ZodObject<{ id: z.ZodOptional<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodOptional<z.ZodNumber>]>>; title: z.ZodString; }, "strip", z.ZodTypeAny, { title: string; id?: string | number | undefined; }, { title: string; id?: string | number | undefined; }>, "many">; count: z.ZodNumber; nextCursor: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { items: { title: string; id?: string | number | undefined; }[]; count: number; nextCursor?: string | undefined; }, { items: { title: string; id?: string | number | undefined; }[]; count: number; nextCursor?: string | undefined; }>; export type CommonListResult = z.infer<typeof commonListOutputSchema>; export declare const viewMetaSchema: z.ZodObject<{ title: z.ZodString; newItem: z.ZodAny; }, "strip", z.ZodTypeAny, { title: string; newItem?: any; }, { title: string; newItem?: any; }>; export type ViewMeta = z.infer<typeof viewMetaSchema>;