@enable-tech/shared-types
Version:
This package represents the single source of truth of the Types being used in the codebase (front-end and back-end) of enable.tech, It is an organization-scoped package. So, all the development teams belonging to it can participate to enhance it.
38 lines • 1.32 kB
TypeScript
import { Control, FieldErrors, FieldValues, RegisterOptions } from 'react-hook-form';
export interface I_CustomInputProps {
required?: boolean;
placeholder?: string;
nobg?: boolean;
disabled?: boolean;
registerFN: any;
registerOptions: RegisterOptions;
errors: any;
value?: any;
fieldName: string;
fieldLabel: string;
isReadOnly?: boolean;
step?: string;
onChange?: any;
onInvalid?: any;
getValues?: any;
watch?: any;
showPwEye?: boolean;
textAreaRow?: string;
defaultValue?: string;
icon?: any;
isHidden?: boolean;
type?: 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week';
fieldtype: 'input' | 'select' | 'file' | 'textarea';
}
export interface M_I_CustomInputProps {
name: string;
control: Control<any>;
rules: Omit<RegisterOptions<FieldValues, any>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'> | undefined;
placeholder?: string;
label?: string;
errors: FieldErrors<any>;
isPassword?: boolean;
isCustomPhoneNumberInput?: boolean;
isNoLabelMarginTopNeeded?: boolean;
}
//# sourceMappingURL=index.d.ts.map