mt-flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS
42 lines (41 loc) • 1.05 kB
TypeScript
import { z } from 'zod';
export interface ComTree {
id?: number;
pid?: number;
name?: string;
ord?: number;
slug?: string;
comId?: number;
nodeType?: string;
enabled: boolean;
children?: ComTree[];
comNode: ComNode;
}
export declare const ComTreeSchema: z.ZodType<ComTree>;
export declare const comNodeSchema: z.ZodObject<{
id: z.ZodOptional<z.ZodNumber>;
name: z.ZodOptional<z.ZodString>;
cn: z.ZodOptional<z.ZodString>;
attrs: z.ZodOptional<z.ZodAny>;
comType: z.ZodString;
}, "strip", z.ZodTypeAny, {
comType: string;
id?: number | undefined;
name?: string | undefined;
cn?: string | undefined;
attrs?: any;
}, {
comType: string;
id?: number | undefined;
name?: string | undefined;
cn?: string | undefined;
attrs?: any;
}>;
export type ComNode = z.infer<typeof comNodeSchema>;
export interface StateNode {
id?: string;
com: string;
props?: any;
children?: StateNode[];
}
export declare const StateNodeSchema: z.ZodType<StateNode>;