Convert input's value to string to use existing types

This commit is contained in:
Jaiwanth
2021-06-29 12:06:58 +05:30
parent 3fc4be0be9
commit 747273cc9c
3 changed files with 6 additions and 6 deletions

View File

@@ -77,7 +77,7 @@ export interface IInputProps extends IProps, InputHTMLAttributes<HTMLInputElemen
// The element to create. Defaults to "input".
element?: "input";
// The input's value. This is a controlled component, so the value is required.
value: string | number;
value: string;
}
interface ISelectProps extends IProps, SelectHTMLAttributes<HTMLSelectElement> {