Skip to content

Commit 2563e6f

Browse files
committed
fix: SelectProp define update
1 parent 2a1dc2f commit 2563e6f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/Select.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,9 @@ const RefSelect = generateSelector<SelectOptionsType>({
6262
fillOptionsWithMissingValue,
6363
});
6464

65-
export type SelectProps<ValueType extends DefaultValueType = DefaultValueType> = SelectProps<
66-
SelectOptionsType,
67-
ValueType
68-
>;
65+
export type ExportedSelectProps<
66+
ValueType extends DefaultValueType = DefaultValueType
67+
> = SelectProps<SelectOptionsType, ValueType>;
6968

7069
/**
7170
* Typescript not support generic with function component,

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Select, { SelectProps } from './Select';
1+
import Select, { ExportedSelectProps as SelectProps } from './Select';
22
import { RefSelectProps } from './generate';
33
import Option from './Option';
44
import OptGroup from './OptGroup';

0 commit comments

Comments
 (0)