diff --git a/components/list/context.ts b/components/list/context.ts index 568a938440..8c0f694363 100644 --- a/components/list/context.ts +++ b/components/list/context.ts @@ -1,7 +1,8 @@ import React from 'react'; +import type { ListGridType } from '.'; export interface ListConsumerProps { - grid?: any; + grid?: ListGridType; itemLayout?: string; } diff --git a/components/select/index.tsx b/components/select/index.tsx index d5e1827304..61754110ac 100755 --- a/components/select/index.tsx +++ b/components/select/index.tsx @@ -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,