From 7a3289fe3a14d81ec6c85b625b4720376d154b0d Mon Sep 17 00:00:00 2001 From: Claudio Romano Date: Wed, 26 Jan 2022 11:50:09 +0100 Subject: [PATCH] chore: better select types --- src/Select.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Select.tsx b/src/Select.tsx index 8ac3c8937..61416b2a0 100644 --- a/src/Select.tsx +++ b/src/Select.tsx @@ -124,8 +124,8 @@ export interface SelectProps; filterSort?: (optionA: OptionType, optionB: OptionType) => number; - optionFilterProp?: string; - optionLabelProp?: string; + optionFilterProp?: keyof OptionType; + optionLabelProp?: keyof OptionType; children?: React.ReactNode; options?: OptionType[]; defaultActiveFirstOption?: boolean;