mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
type: optimize type (#43545)
* type: optimize type * Apply suggestions from code review Signed-off-by: afc163 <afc163@gmail.com> --------- Signed-off-by: afc163 <afc163@gmail.com> Co-authored-by: afc163 <afc163@gmail.com>
This commit is contained in:
parent
860e58ee6f
commit
c51031ae53
@ -1,7 +1,8 @@
|
||||
import React from 'react';
|
||||
import type { ListGridType } from '.';
|
||||
|
||||
export interface ListConsumerProps {
|
||||
grid?: any;
|
||||
grid?: ListGridType;
|
||||
itemLayout?: string;
|
||||
}
|
||||
|
||||
|
@ -165,7 +165,10 @@ const InternalSelect = <
|
||||
prefixCls,
|
||||
});
|
||||
|
||||
const selectProps = omit(props as typeof props & { itemIcon: any }, ['suffixIcon', 'itemIcon']);
|
||||
const selectProps = omit(props as typeof props & { itemIcon: React.ReactNode }, [
|
||||
'suffixIcon',
|
||||
'itemIcon',
|
||||
]);
|
||||
|
||||
const rcSelectRtlDropdownClassName = classNames(
|
||||
popupClassName || dropdownClassName,
|
||||
|
Loading…
Reference in New Issue
Block a user