Skip to content

Commit 3d18dec

Browse files
committed
Cleanup
1 parent 9d1af70 commit 3d18dec

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

refactor/src/components/Input/InputField.component.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,27 @@ interface ICustomValidation {
55
minlength?: number;
66
}
77

8-
interface Errors {}
8+
interface IErrors {}
99

1010
export 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
*/
3030
export const InputField = ({
3131
customValidation,

0 commit comments

Comments
 (0)