(option: AskUserOption)
| 26 | |
| 27 | /** Helper to extract label from an option (handles both string and object formats) */ |
| 28 | export const getOptionLabel = (option: AskUserOption): string => { |
| 29 | return typeof option === 'string' ? option : option?.label ?? '' |
| 30 | } |
| 31 | |
| 32 | /** Constant for the "Custom" option index */ |
| 33 | export const CUSTOM_OPTION_INDEX: number = -1 |
no outgoing calls