Fix implicit any error for AutoComplete

This commit is contained in:
Wei Zhu 2017-11-22 11:26:04 +08:00
parent db560bb10d
commit c27d4deb72

View File

@ -34,7 +34,7 @@ function isSelectOptionOrSelectOptGroup(child: any): Boolean {
return child && child.type && (child.type.isSelectOption || child.type.isSelectOptGroup);
}
export default class AutoComplete extends React.Component<AutoCompleteProps, any> {
export default class AutoComplete extends React.Component<AutoCompleteProps, {}> {
static Option = Option as React.ClassicComponentClass<OptionProps>;
static OptGroup = OptGroup as React.ClassicComponentClass<OptGroupProps>;
@ -69,7 +69,7 @@ export default class AutoComplete extends React.Component<AutoCompleteProps, any
this.select.blur();
}
saveSelect = (node) => {
saveSelect = (node: any) => {
this.select = node;
}