Updated createInterface Function

Added historySize?: number;,  prompt?: string;, crlfDelay?: number;, and removeHistoryDuplicates?: boolean; to createInterfaceFunction
This commit is contained in:
McClelland Laboratories
2017-07-06 11:37:34 -07:00
committed by GitHub
parent af374b95e3
commit 3a40993a4d
+1 -1
View File
@@ -1588,7 +1588,7 @@ declare module "readline" {
removeHistoryDuplicates?: boolean;
}
export function createInterface(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean): ReadLine;
export function createInterface(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean, historySize?: number, prompt?: string, crlfDelay?: number, removeHistoryDuplicates?: boolean): ReadLine;
export function createInterface(options: ReadLineOptions): ReadLine;
export function cursorTo(stream: NodeJS.WritableStream, x: number, y: number): void;