typescript, FC

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2022-04-14 18:10:46 +02:00
parent 92a6058f26
commit f745c9fc97
9 changed files with 102 additions and 128 deletions

View File

@@ -19,7 +19,7 @@ interface IInput extends Pick<React.InputHTMLAttributes<HTMLInputElement>, 'onCh
name?: string,
placeholder?: string,
value?: string,
onChange?: () => void,
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void,
type: 'text' | 'email' | 'tel' | 'password'
}