From fb0dc7e7ce6214708aa874ca2ac9ad03a7f99f0d Mon Sep 17 00:00:00 2001 From: thinkasany <480968828@qq.com> Date: Wed, 27 Nov 2024 14:37:47 +0800 Subject: [PATCH] type: onChange callback should define 'option' as Option | Option[] | undefined --- src/Select.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Select.tsx b/src/Select.tsx index 88fa5aaa..9ead1bf4 100644 --- a/src/Select.tsx +++ b/src/Select.tsx @@ -161,7 +161,7 @@ export interface SelectProps void; + onChange?: (value: ValueType, option?: OptionType | OptionType[]) => void; } function isRawValue(value: DraftValueType): value is RawValueType {