diff --git a/components/auto-complete/index.tsx b/components/auto-complete/index.tsx index df43c64e02..865b80d7ca 100755 --- a/components/auto-complete/index.tsx +++ b/components/auto-complete/index.tsx @@ -31,8 +31,8 @@ export interface AutoCompleteProps extends AbstractSelectProps { optionLabelProp?: string; onChange?: (value: SelectValue) => void; onSelect?: (value: SelectValue, option: Object) => any; - onBlur?: () => any; - onFocus?: () => any; + onBlur?: (value: SelectValue) => void; + onFocus?: () => void; children?: ValidInputElement | React.ReactElement | Array>; diff --git a/components/date-picker/wrapPicker.tsx b/components/date-picker/wrapPicker.tsx index 84d4c1e553..358f068c4c 100644 --- a/components/date-picker/wrapPicker.tsx +++ b/components/date-picker/wrapPicker.tsx @@ -53,28 +53,28 @@ export default function wrapPicker(Picker: React.ComponentClass, defaultFor onOpenChange(open); } - handleFocus = (e: React.FocusEventHandler) => { + handleFocus: React.FocusEventHandler = (e) => { const { onFocus } = this.props; if (onFocus) { onFocus(e); } } - handleBlur = (e: React.FocusEventHandler) => { + handleBlur: React.FocusEventHandler = (e) => { const { onBlur } = this.props; if (onBlur) { onBlur(e); } } - handleMouseEnter = (e: React.MouseEventHandler) => { + handleMouseEnter: React.MouseEventHandler = (e) => { const { onMouseEnter } = this.props; if (onMouseEnter) { onMouseEnter(e); } } - handleMouseLeave = (e: React.MouseEventHandler) => { + handleMouseLeave: React.MouseEventHandler = (e) => { const { onMouseLeave } = this.props; if (onMouseLeave) { onMouseLeave(e); diff --git a/components/select/index.tsx b/components/select/index.tsx index cf682f20e3..61ff73a67a 100755 --- a/components/select/index.tsx +++ b/components/select/index.tsx @@ -53,8 +53,8 @@ export interface SelectProps extends AbstractSelectProps { onChange?: (value: SelectValue, option: React.ReactElement | React.ReactElement[]) => void; onSelect?: (value: SelectValue, option: React.ReactElement) => any; onDeselect?: (value: SelectValue) => any; - onBlur?: () => any; - onFocus?: () => any; + onBlur?: (value: SelectValue) => void; + onFocus?: () => void; onPopupScroll?: () => any; onInputKeyDown?: (e: React.KeyboardEvent) => void; onMouseEnter?: (e: React.MouseEvent) => any;