Browse Source
Better flow types for Input component handlers (except for `onChange`)
master
meriadec
7 years ago
No known key found for this signature in database
GPG Key ID: 1D2FC2305E2CB399
1 changed files with
4 additions and
4 deletions
-
src/components/base/Input/index.js
|
|
@ -66,11 +66,11 @@ export const Textarea = styled.textarea.attrs({ |
|
|
|
|
|
|
|
type Props = { |
|
|
|
keepEvent?: boolean, |
|
|
|
onBlur: Function, |
|
|
|
onBlur: (SyntheticInputEvent<HTMLInputElement>) => void, |
|
|
|
onChange?: Function, |
|
|
|
onEnter?: Function, |
|
|
|
onEsc?: Function, |
|
|
|
onFocus: Function, |
|
|
|
onEnter?: (SyntheticKeyboardEvent<HTMLInputElement>) => void, |
|
|
|
onEsc?: (SyntheticKeyboardEvent<HTMLInputElement>) => void, |
|
|
|
onFocus: (SyntheticInputEvent<HTMLInputElement>) => void, |
|
|
|
renderLeft?: any, |
|
|
|
renderRight?: any, |
|
|
|
containerProps?: Object, |
|
|
|