mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
Fix implicit any error for AutoComplete
This commit is contained in:
parent
db560bb10d
commit
c27d4deb72
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user