Path: blob/main/third_party/closure-compiler/node-externs/repl.js
6171 views
/*1* Copyright 2012 The Closure Compiler Authors.2*3* Licensed under the Apache License, Version 2.0 (the "License");4* you may not use this file except in compliance with the License.5* You may obtain a copy of the License at6*7* http://www.apache.org/licenses/LICENSE-2.08*9* Unless required by applicable law or agreed to in writing, software10* distributed under the License is distributed on an "AS IS" BASIS,11* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12* See the License for the specific language governing permissions and13* limitations under the License.14*/1516/**17* @fileoverview Definitions for node's repl module. Depends on the events and stream modules.18* @see http://nodejs.org/api/repl.html19* @see https://github.com/joyent/node/blob/master/lib/repl.js20* @externs21* @author Daniel Wirtz <[email protected]>22*/2324/**25BEGIN_NODE_INCLUDE26var repl = require('repl');27END_NODE_INCLUDE28*/2930/**31* @type {Object.<string,*>}32*/33var repl = {};3435/**36* @param {{prompt: ?string, input: ?stream.Readable, output: ?stream.Writable, terminal: ?boolean, eval: ?function(string), useColors: ?boolean, useGlobal: ?boolean, ignoreUndefined: ?boolean, writer: ?function(string)}} options37* @return {repl.REPLServer}38*/39repl.start = function(options) {};4041/**42* @constructor43* @extends events.EventEmitter44*/45repl.REPLServer = function() {};4647/**48* @type {Object.<string,*>}49*/50repl.REPLServer.prototype.context;515253