()
| 134 | const canSetRawMode = typeof input.setRawMode === 'function'; |
| 135 | |
| 136 | const cleanup = (): void => { |
| 137 | input.off('keypress', onKeypress); |
| 138 | if (canSetRawMode) { |
| 139 | input.setRawMode(hadRawMode); |
| 140 | } |
| 141 | output.write(SHOW_CURSOR); |
| 142 | output.write('\n'); |
| 143 | }; |
| 144 | |
| 145 | const finish = (choice: InstallPromptChoiceValue): void => { |
| 146 | cleanup(); |
no test coverage detected