Skip to content

Commit 53322ad

Browse files
committed
fix type
1 parent 6b4dce6 commit 53322ad

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/BaseSelect/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { getSeparatedContent, isValidCount } from '../utils/valueUtil';
3030
import SelectContext from '../SelectContext';
3131
import type { SelectContextProps } from '../SelectContext';
3232
import Polite from './Polite';
33-
type BaseSelectSemanticName = 'prefix' | 'suffix' | 'input';
33+
export type BaseSelectSemanticName = 'prefix' | 'suffix' | 'input';
3434

3535
export type {
3636
DisplayInfoType,

src/Select.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import type {
3636
BaseSelectProps,
3737
BaseSelectPropsWithoutPrivate,
3838
BaseSelectRef,
39+
BaseSelectSemanticName,
3940
DisplayInfoType,
4041
DisplayValueType,
4142
RenderNode,
@@ -107,7 +108,7 @@ export type SelectHandler<ValueType, OptionType extends BaseOptionType = Default
107108

108109
type ArrayElementType<T> = T extends (infer E)[] ? E : T;
109110

110-
export type SemanticName = 'prefix' | 'suffix' | 'listItem' | 'list' | 'input';
111+
export type SemanticName = BaseSelectSemanticName | 'listItem' | 'list';
111112
export interface SelectProps<ValueType = any, OptionType extends BaseOptionType = DefaultOptionType>
112113
extends BaseSelectPropsWithoutPrivate {
113114
prefixCls?: string;

0 commit comments

Comments
 (0)