UNPKG

hotelier-lib

Version:

A skeleton to create your own React component library using Rollup, TypeScript, Sass and Storybook

31 lines (30 loc) 759 B
import { z } from "zod"; declare const myProfileSchema: z.ZodObject<{ fullName: z.ZodString; email: z.ZodString; phoneNumber: z.ZodString; }, "strip", z.ZodTypeAny, { fullName?: string; email?: string; phoneNumber?: string; }, { fullName?: string; email?: string; phoneNumber?: string; }>; export type IMyProfile = z.infer<typeof myProfileSchema>; interface Field { label: string; description: string; } interface Fields { [key: string]: Field; } interface addPersonProps { fields?: Fields; onsubmit: any; defaultValues?: any; id: string; } declare function AddPersonForm({ onsubmit, defaultValues, id, fields }: addPersonProps): any; export default AddPersonForm;