Skip to content

Commit 21d7795

Browse files
committed
fix type
1 parent ef3b85f commit 21d7795

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/TreeSelect.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
import type {
2-
BaseSelectProps,
3-
BaseSelectPropsWithoutPrivate,
4-
BaseSelectRef,
5-
SelectProps,
6-
} from 'rc-select';
1+
import type { BaseSelectProps, BaseSelectPropsWithoutPrivate, BaseSelectRef } from 'rc-select';
72
import { BaseSelect } from 'rc-select';
83
import useId from 'rc-select/lib/hooks/useId';
94
import type { IconType } from 'rc-tree/lib/interface';
@@ -62,8 +57,8 @@ export interface TreeSelectProps<ValueType = any, OptionType extends DataNode =
6257
treeNodeFilterProp?: string;
6358

6459
// >>> Select
65-
onSelect?: SelectProps<ValueType, OptionType>['onSelect'];
66-
onDeselect?: SelectProps<ValueType, OptionType>['onDeselect'];
60+
onSelect?: (value: ValueType, option: OptionType) => void;
61+
onDeselect?: (value: ValueType, option: OptionType) => void;
6762

6863
// >>> Selector
6964
showCheckedStrategy?: CheckedStrategy;

0 commit comments

Comments
 (0)