UNPKG

hotelier-lib

Version:

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

38 lines (37 loc) 986 B
import { z } from 'zod'; declare const changePasswordSchema: z.ZodEffects<z.ZodObject<{ currentPassword: z.ZodString; newPassword: z.ZodString; reTypePassword: z.ZodString; }, "strip", z.ZodTypeAny, { currentPassword?: string; newPassword?: string; reTypePassword?: string; }, { currentPassword?: string; newPassword?: string; reTypePassword?: string; }>, { currentPassword?: string; newPassword?: string; reTypePassword?: string; }, { currentPassword?: string; newPassword?: string; reTypePassword?: string; }>; export type IChangePassword = z.infer<typeof changePasswordSchema>; interface Field { label: string; description: string; } interface Fields { [key: string]: Field; } interface addPersonProps { fields?: Fields; onsubmit: any; id: string; } declare function ChangePassword({ onsubmit, id, fields, }: addPersonProps): any; export default ChangePassword;