| 1 |
import type { GroupBase, Options, OptionsOrGroups } from 'react-select' |
| 2 |
|
| 3 |
export interface SelectOption<T> { |
| 4 |
readonly key?: string | number |
| 5 |
readonly value: T |
| 6 |
readonly label: string |
| 7 |
} |
| 8 |
|
| 9 |
export type SelectGroup<T> = GroupBase<SelectOption<T>> |
| 10 |
|
| 11 |
export type SelectOptions<T> = Options<SelectOption<T>> |
| 12 |
|
| 13 |
export type SelectGroups<T> = OptionsOrGroups<SelectOption<T>, SelectGroup<T>> |
| 14 |
|