File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
refactor/src/components/Input Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -5,27 +5,27 @@ interface ICustomValidation {
55 minlength ?: number ;
66}
77
8- interface Errors { }
8+ interface IErrors { }
99
1010export interface IInputRootObject {
1111 inputLabel : string ;
1212 inputName : string ;
1313 customValidation : ICustomValidation ;
14- errors : Errors ;
14+ errors : IErrors ;
1515 register : UseFormRegister < FieldValues > ;
1616 type ?: string ;
1717}
1818
1919/**
2020 * Input field component displays a text input in a form, with label.
2121 * The various properties of the input field can be determined with the props:
22- * @param {Object } [customValidation] - the validation rules to apply to the input field
23- * @param {Object } errors - the form errors object provided by react-hook-form
22+ * @param {ICustomValidation } [customValidation] - the validation rules to apply to the input field
23+ * @param {IErrors } errors - the form errors object provided by react-hook-form
2424 * @param {string } inputLabel - used for the display label
2525 * @param {string } inputName - the key of the value in the submitted data. Must be unique
2626 * @param {UseFormRegister<FieldValues> } register - register function from react-hook-form
2727 * @param {boolean } [required=true] - whether or not this field is required. default true
28- * @param {'text'|'number' } [type='text'] - the input type. defaults to text
28+ * @param {string } [type='text'] - the input type. defaults to text
2929 */
3030export const InputField = ( {
3131 customValidation,
You can’t perform that action at this time.
0 commit comments