diff --git a/src/Select.tsx b/src/Select.tsx index 59f35f97..04673319 100644 --- a/src/Select.tsx +++ b/src/Select.tsx @@ -138,8 +138,8 @@ export interface SelectProps; filterSort?: (optionA: OptionType, optionB: OptionType, info: { searchValue: string }) => number; - optionFilterProp?: string; - optionLabelProp?: string; + optionFilterProp?: keyof OptionType; + optionLabelProp?: keyof OptionType; children?: React.ReactNode; options?: OptionType[]; optionRender?: (