Skip to content

Commit

Permalink
type: optimize type (ant-design#43545)
Browse files Browse the repository at this point in the history
* type: optimize type

* Apply suggestions from code review

Signed-off-by: afc163 <[email protected]>

---------

Signed-off-by: afc163 <[email protected]>
Co-authored-by: afc163 <[email protected]>
  • Loading branch information
thinkasany and afc163 authored Jul 14, 2023
1 parent 860e58e commit c51031a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/list/context.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React from 'react';
import type { ListGridType } from '.';

export interface ListConsumerProps {
grid?: any;
grid?: ListGridType;
itemLayout?: string;
}

Expand Down
5 changes: 4 additions & 1 deletion components/select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c51031a

Please sign in to comment.