Convert RegistrationForm to Typescript

This commit is contained in:
Michael Telatynski 2020-11-19 15:10:40 +00:00
parent d45d0c6633
commit 3dcb58f108
3 changed files with 113 additions and 94 deletions

View file

@ -64,7 +64,7 @@ interface IProps {
// All other props pass through to the <input>.
}
interface IInputProps extends IProps, InputHTMLAttributes<HTMLInputElement> {
export interface IInputProps extends IProps, InputHTMLAttributes<HTMLInputElement> {
// The element to create. Defaults to "input".
element?: "input";
// The input's value. This is a controlled component, so the value is required.