Skip to content

Commit 6295d7f

Browse files
authored
fix: restore the never fields in SelectOptionItem (#623)
1 parent 92d3842 commit 6295d7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/Select/common/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export interface SelectGroupProps
4040
}
4141
export interface SelectOptionItem
4242
extends Omit<SelectItemProps, "children" | "label" | "description"> {
43+
heading?: never;
4344
label: ReactNode;
4445
description?: ReactNode;
4546
[key: `data-${string}`]: string;
@@ -48,6 +49,7 @@ export interface SelectOptionItem
4849
interface SelectGroupOptionItem
4950
extends Omit<SelectGroupProps, "children" | "label" | "description"> {
5051
options: Array<SelectOptionItem>;
52+
label?: never;
5153
[key: `data-${string}`]: string;
5254
}
5355

0 commit comments

Comments
 (0)