// Automatically generated from TypeScript type definitions provided by // DefinitelyTyped (https://github.com/DefinitelyTyped/DefinitelyTyped), // which is licensed under the MIT license; see file DefinitelyTyped-LICENSE // in parent directory. // Type definitions for Node.js 10.5.x // Project: http://nodejs.org/ // Definitions by: Microsoft TypeScript // DefinitelyTyped // Parambir Singh // Christian Vaagland Tellnes // Wilco Bakker // Nicolas Voigt // Chigozirim C. // Flarna // Mariusz Wiktorczyk // wwwy3y3 // Deividas Bakanas // Kelvin Jin // Alvis HT Tang // Sebastian Silbermann // Hannes Magnusson // Alberto Schiabel // Klaus Meinhardt // Huw // Nicolas Even // Bruno Scheufler // Mohsen Azimi // Hoàng Văn Khải // Alexander T. // Lishude // Andrew Makarov // Zane Hannan AU // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** * @externs * @fileoverview Definitions for module "repl" */ var repl = {}; var readline = require("readline"); /** * @interface */ repl.ReplOptions = function() {}; /** * @type {string} */ repl.ReplOptions.prototype.prompt; /** * @type {NodeJS.ReadableStream} */ repl.ReplOptions.prototype.input; /** * @type {NodeJS.WritableStream} */ repl.ReplOptions.prototype.output; /** * @type {boolean} */ repl.ReplOptions.prototype.terminal; /** * @type {Function} */ repl.ReplOptions.prototype.eval; /** * @type {boolean} */ repl.ReplOptions.prototype.useColors; /** * @type {boolean} */ repl.ReplOptions.prototype.useGlobal; /** * @type {boolean} */ repl.ReplOptions.prototype.ignoreUndefined; /** * @type {Function} */ repl.ReplOptions.prototype.writer; /** * @type {Function} */ repl.ReplOptions.prototype.completer; /** * @type {*} */ repl.ReplOptions.prototype.replMode; /** * @type {*} */ repl.ReplOptions.prototype.breakEvalOnSigint; /** * @interface * @extends {readline.ReadLine} */ repl.REPLServer = function() {}; /** * @param {string} keyword * @param {(Function|{help: string, action: Function})} cmd * @return {void} */ repl.REPLServer.prototype.defineCommand = function(keyword, cmd) {}; /** * @param {boolean=} preserveCursor * @return {void} */ repl.REPLServer.prototype.displayPrompt = function(preserveCursor) {}; /** * @param {repl.ReplOptions} options * @return {repl.REPLServer} */ repl.start = function(options) {}; module.exports.ReplOptions = repl.ReplOptions; module.exports.REPLServer = repl.REPLServer; module.exports.start = repl.start; /** * @interface */ repl.REPLServer = function() {}; repl.REPLServer.prototype.context; module.exports.REPLServer = repl.REPLServer;