(target: UpdateTarget)
| 36 | const SKIP_HINT = 'Continue with current version'; |
| 37 | |
| 38 | export function createInstallPromptChoices(target: UpdateTarget): readonly InstallPromptChoice[] { |
| 39 | return [ |
| 40 | { value: 'install', label: `${INSTALL_HINT} (${target.version})` }, |
| 41 | { value: 'skip', label: SKIP_HINT }, |
| 42 | ]; |
| 43 | } |
| 44 | |
| 45 | export function getDefaultInstallPromptSelection(choices: readonly InstallPromptChoice[]): number { |
| 46 | const installIndex = choices.findIndex((choice) => choice.value === 'install'); |
no outgoing calls
no test coverage detected