Skip to content

Commit 42d1d75

Browse files
committed
fix: typing for placeholder
1 parent 9135fe5 commit 42d1d75

File tree

1 file changed

+11
-1
lines changed
  • src/Shared/Components/SelectPicker

1 file changed

+11
-1
lines changed

src/Shared/Components/SelectPicker/type.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,17 @@ import { ReactElement, ReactNode } from 'react'
44
import { Props as ReactSelectProps } from 'react-select'
55

66
export interface SelectPickerOptionType extends OptionType<number | string, ReactNode> {
7+
/**
8+
* Description to be displayed for the option
9+
*/
710
description?: string
11+
/**
12+
* Icon at the start of the option
13+
*/
814
startIcon?: ReactElement
15+
/**
16+
* Icon at the end of the option
17+
*/
918
endIcon?: ReactElement
1019
}
1120

@@ -28,8 +37,9 @@ export interface SelectPickerProps
2837
| 'isLoading'
2938
| 'required'
3039
| 'isOptionDisabled'
40+
| 'placeholder'
3141
>,
32-
Required<Pick<SelectProps, 'classNamePrefix' | 'inputId' | 'name' | 'placeholder'>> {
42+
Required<Pick<SelectProps, 'classNamePrefix' | 'inputId' | 'name'>> {
3343
/**
3444
* Icon to be rendered in the control
3545
*/

0 commit comments

Comments
 (0)