Node.d.ts: Update definitions for module "repl" (#10958)

This commit is contained in:
hriss95
2016-09-06 15:13:49 +01:00
committed by Masahiro Wakame
parent 6ae3be6d82
commit ef8a45b6e5

13
node/node.d.ts vendored
View File

@@ -970,7 +970,7 @@ declare module "punycode" {
declare module "repl" {
import * as stream from "stream";
import * as events from "events";
import * as readline from "readline";
export interface ReplOptions {
prompt?: string;
@@ -982,8 +982,17 @@ declare module "repl" {
useGlobal?: boolean;
ignoreUndefined?: boolean;
writer?: Function;
completer?: Function;
replMode?: any;
breakEvalOnSigint?: any;
}
export function start(options: ReplOptions): events.EventEmitter;
export interface REPLServer extends readline.ReadLine {
defineCommand(keyword: string, cmd: Function | { help: string, action: Function }): void;
displayPrompt(preserveCursor?: boolean): void
}
export function start(options: ReplOptions): REPLServer;
}
declare module "readline" {