Skip to content

Commit a54f4e6

Browse files
committed
fix: typing for menuListFooterConfig Value
1 parent be29fac commit a54f4e6

File tree

1 file changed

+8
-2
lines changed
  • src/Shared/Components/SelectPicker

1 file changed

+8
-2
lines changed

src/Shared/Components/SelectPicker/type.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ type SelectProps<OptionValue, IsMulti extends boolean> = ReactSelectProps<
5858
type MenuListFooterConfigType =
5959
| {
6060
type: 'text'
61-
value: string
61+
/**
62+
* String is preferred for text type
63+
*/
64+
value: ReactNode
6265
buttonProps?: never
6366
}
6467
| {
@@ -162,7 +165,6 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
162165
Partial<
163166
Pick<
164167
SelectProps<OptionValue, IsMulti>,
165-
| 'menuListFooterConfig'
166168
| 'shouldRenderCustomOptions'
167169
| 'renderCustomOptions'
168170
| 'icon'
@@ -183,6 +185,10 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
183185
>
184186
> &
185187
Omit<FormFieldWrapperProps, 'children'> & {
188+
/**
189+
* Config for the footer at the bottom of menu list. It is sticky by default
190+
*/
191+
menuListFooterConfig?: MenuListFooterConfigType
186192
/**
187193
* Custom selected options count for use cases like filters
188194
*/

0 commit comments

Comments
 (0)