(outputText: string, columns: number, errorText?: string)
| 1440 | } |
| 1441 | |
| 1442 | const clearOutputWithError = (outputText: string, columns: number, errorText?: string): string => { |
| 1443 | if (errorText !== undefined && errorText.length > 0) { |
| 1444 | return Ansi.cursorDown(lines(errorText, columns)) |
| 1445 | + eraseText(`\n${errorText}`, columns) |
| 1446 | + eraseText(outputText, columns) |
| 1447 | } |
| 1448 | return eraseText(outputText, columns) |
| 1449 | } |
| 1450 | |
| 1451 | interface ConfirmOptionsReq extends Required<ConfirmOptions> {} |
| 1452 |
no test coverage detected