react-component / select

React Select
https://select.react-component.now.sh/
MIT License
892 stars 451 forks source link

`optionRender` should use generic type `OptionType` instead of the default type #1033

Open yifanwww opened 3 months ago

yifanwww commented 3 months ago

optionRender should use generic type OptionType instead of the default type BaseOptionType

code: https://github.com/react-component/select/blob/v14.13.0/src/Select.tsx#L145

 optionRender?: (
-  oriOption: FlattenOptionData<BaseOptionType>,
+  oriOption: FlattenOptionData<OptionType>,
   info: { index: number },
 ) => React.ReactNode;