Path: blob/main/third_party/closure-compiler/node-externs/child_process.js
6172 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 child_process module. Depends on the events module.18* @see http://nodejs.org/api/child_process.html19* @see https://github.com/joyent/node/blob/master/lib/child_process.js20* @externs21* @author Daniel Wirtz <[email protected]>22*/2324/**25BEGIN_NODE_INCLUDE26var child_process = require('child_process');27END_NODE_INCLUDE28*/2930/**31* @type {Object.<string,*>}32*/33var child_process = {};3435/**36* @constructor37* @param {...*} var_args38* @extends events.EventEmitter39*/40child_process.ChildProcess = function(var_args) {}; // Private?4142/**43* @type {stream.ReadableStream}44*/45child_process.ChildProcess.prototype.stdin;4647/**48* @type {stream.WritableStream}49*/50child_process.ChildProcess.prototype.stdout;5152/**53* @type {stream.WritableStream}54*/55child_process.ChildProcess.prototype.stderr;5657/**58* @type {number}59*/60child_process.ChildProcess.prototype.pid;6162/**63* @param {string=} signal64*/65child_process.ChildProcess.prototype.kill = function(signal) {};6667/**68* @param {Object.<string,*>} message69* @param {*} sendHandle70*/71child_process.ChildProcess.prototype.send = function(message, sendHandle) {};7273/**74*/75child_process.ChildProcess.prototype.disconnect = function() {};7677/**78* @typedef {{cwd: string, stdio: (Array|string), customFds: Array, env: Object.<string,*>, detached: boolean, uid: number, gid: number, encoding: string, timeout: number, maxBuffer: number, killSignal: string}}79*/80child_process.Options;8182/**83* @param {string} command84* @param {Array.<string>=} args85* @param {child_process.Options=} options86* @return {child_process.ChildProcess}87*/88child_process.ChildProcess.spawn = function(command, args, options) {};8990/**91* @param {string} command92* @param {child_process.Options|function(Error, nodeBuffer.Buffer, nodeBuffer.Buffer)=} options93* @param {function(Error, nodeBuffer.Buffer, nodeBuffer.Buffer)=} callback94* @return {child_process.ChildProcess}95*/96child_process.exec = function(command, options, callback) {};9798/**99* @param {string} file100* @param {Array.<string>} args101* @param {child_process.Options} options102* @param {function(Error, nodeBuffer.Buffer, nodeBuffer.Buffer)} callback103* @return {child_process.ChildProcess}104*/105child_process.execFile = function(file, args, options, callback) {};106107/**108* @param {string} modulePath109* @param {Array.<string>=} args110* @param {child_process.Options=} options111* @return {child_process.ChildProcess}112*/113child_process.fork = function(modulePath, args, options) {};114115116