@@ -10,8 +10,8 @@ import warning from '../_util/warning';
1010
1111const { Option, OptGroup } = Select ;
1212
13- function isSelectOptionOrSelectOptGroup ( child : any ) : Boolean {
14- return child && child . type && ( child . type . isSelectOption || child . type . isSelectOptGroup ) ;
13+ function isSelectOptionOrSelectOptGroup ( child : any ) : boolean {
14+ return child ? .type ?. isSelectOption || child ? .type ? .isSelectOptGroup ;
1515}
1616
1717const AutoCompleteProps = {
@@ -83,12 +83,12 @@ const AutoComplete = defineComponent({
8383
8484 render ( ) {
8585 const { size, prefixCls : customizePrefixCls , dataSource } = this ;
86- let optionChildren : any ;
86+ let optionChildren : VNode [ ] ;
8787 const { getPrefixCls } = this . configProvider ;
8888 const prefixCls = getPrefixCls ( 'select' , customizePrefixCls ) ;
89- const { class : className } = this . $attrs as any ;
89+ const { class : className } = this . $attrs ;
9090 const cls = {
91- [ className ] : ! ! className ,
91+ [ className as string ] : ! ! className ,
9292 [ `${ prefixCls } -lg` ] : size === 'large' ,
9393 [ `${ prefixCls } -sm` ] : size === 'small' ,
9494 [ `${ prefixCls } -show-search` ] : true ,
0 commit comments