(options: PromptOptions<TValue, Prompt<TValue>>, trackValue = true)
| 51 | public userInput = ''; |
| 52 | |
| 53 | constructor(options: PromptOptions<TValue, Prompt<TValue>>, trackValue = true) { |
| 54 | const { input = stdin, output = stdout, render, signal, ...opts } = options; |
| 55 | |
| 56 | this.opts = opts; |
| 57 | this.onKeypress = this.onKeypress.bind(this); |
| 58 | this.close = this.close.bind(this); |
| 59 | this.render = this.render.bind(this); |
| 60 | this._render = render.bind(this); |
| 61 | this._track = trackValue; |
| 62 | this._abortSignal = signal; |
| 63 | |
| 64 | this.input = input; |
| 65 | this.output = output; |
| 66 | } |
| 67 | |
| 68 | /** |
| 69 | * Unsubscribe all listeners |
nothing calls this directly
no outgoing calls
no test coverage detected