Update node's ReadLine.setPrompt to match new API

Fixes #5224
This commit is contained in:
Alex Wilson
2015-08-08 12:54:49 -06:00
parent 8de599097a
commit 17146c4455
4 changed files with 49 additions and 13 deletions
+1 -1
View File
@@ -781,7 +781,7 @@ declare module "readline" {
import * as stream from "stream";
export interface ReadLine extends events.EventEmitter {
setPrompt(prompt: string, length: number): void;
setPrompt(prompt: string): void;
prompt(preserveCursor?: boolean): void;
question(query: string, callback: Function): void;
pause(): void;