Path: blob/main/third_party/closure-compiler/node-externs/util.js
6174 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 util module. Depends on the stream module.18* @see http://nodejs.org/api/util.html19* @see https://github.com/joyent/node/blob/master/lib/util.js20* @externs21* @author Daniel Wirtz <[email protected]>22*/2324/**25BEGIN_NODE_INCLUDE26var util = require('util');27END_NODE_INCLUDE28*/2930/**31* @type {Object.<string,*>}32*/33var util = {};3435/**36* @param {string} format37* @param {...*} var_args38* @return {string}39* @nosideeffects40*/41util.format = function(format, var_args) {};4243/**44* @param {string} string45*/46util.debug = function(string) {};4748/**49* @param {...*} var_args50*/51util.error = function(var_args) {};5253/**54* @param {...*} var_args55*/56util.puts = function(var_args) {};5758/**59* @param {...*} var_args60*/61util.print = function(var_args) {};6263/**64* @param {string} string65*/66util.log = function(string) {};6768/**69* @param {*} object70* @param {{showHidden: (boolean|undefined),71* depth: (number|null|undefined),72* colors: (boolean|undefined),73* customInspect: (boolean|undefined)}=} options74* @return {string}75* @nosideeffects76*/77util.inspect;7879/**80* @param {*} object81* @return {boolean}82* @nosideeffects83*/84util.isArray = function(object) {};8586/**87* @param {*} object88* @return {boolean}89* @nosideeffects90*/91util.isRegExp = function(object) {};9293/**94* @param {*} object95* @return {boolean}96* @nosideeffects97*/98util.isDate = function(object) {};99100/**101* @param {*} object102* @return {boolean}103* @nosideeffects104*/105util.isError = function(object) {};106107/**108* @param {stream.ReadableStream} readableStream109* @param {stream.WritableStream} writableStream110* @param {function(...)=} callback111* @deprecated112*/113util.pump = function(readableStream, writableStream, callback) {};114115/**116* @param {Function} constructor117* @param {Function} superConstructor118*/119util.inherits = function(constructor, superConstructor) {};120121122