hotelier-lib
Version:
A skeleton to create your own React component library using Rollup, TypeScript, Sass and Storybook
21 lines (20 loc) • 588 B
TypeScript
import { z } from "zod";
declare const policyFormSchema: z.ZodObject<{
name: z.ZodString;
id: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
name?: string;
id?: string;
}, {
name?: string;
id?: string;
}>;
export type IPolicyForm = z.infer<typeof policyFormSchema>;
interface serviceCategoryProps {
onSubmit: (data: IPolicyForm) => void;
id: string;
fields?: any;
defaultValues?: IPolicyForm;
}
declare function PolicyForm({ onSubmit, id, defaultValues, fields }: serviceCategoryProps): any;
export default PolicyForm;