Path: blob/main/src/closure-externs/node-externs.js
4133 views
/**1* @type {Object.<string,*>}2*/3var ws = {};45/**6* @param {string} event7* @param {function()} callback8*/9ws.on = function(event, callback) {};1011/**12* @param {Object} data13* @param {Object} flags14* @param {function()=} callback15*/16ws.send = function(data, flags, callback) {};1718/**19* @type {boolean}20*/21ws.binaryType;2223/**24* @type {Object.<string,*>}25*/26var wss = ws.Server;2728/**29* @param {string} event30* @param {function()} callback31*/32wss.on = function(event, callback) {};3334/**35* @param {function()} callback36*/37wss.broadcast = function(callback) {};3839/**40* @type {Object.<string,*>}41*/42wss._socket;4344/**45* @type {string}46*/47wss.url;4849/**50* @type {string}51*/52wss._socket.remoteAddress;5354/**55* @type {number}56*/57wss._socket.remotePort;5859/**60* @suppress {duplicate}61*/62var fs;6364/**65* @param {...*} var_args66* @constructor67* @nosideeffects68*/69var Buffer = function(var_args) {};7071/**72* @param {ArrayBuffer|SharedArrayBuffer|string} arrayBufferOrString73* @param {number|string=} byteOffsetOrEncoding74* @param {number=} length75* @return {nodeBuffer.Buffer}76* @nosideeffects77*/78Buffer.from = function(arrayBufferOrString, byteOffsetOrEncoding, length) {};7980/**81* @param {number} size82* @param {(string|!Buffer|number)=} fill83* @param {string=} encoding84* @return {!Buffer}85*/86Buffer.alloc = function(size, fill, encoding) {};8788/**89* @return {boolean}90* @nosideeffects91*/92Buffer.isBuffer = function(obj) {};9394/**95* @param {number=} start96* @param {number=} end97* @return {Buffer}98* @nosideeffects99*/100Buffer.prototype.slice = function(start, end) {};101102/**103* @param {string=} encoding104* @param {number=} start105* @param {number=} end106* @nosideeffects107*/108Buffer.prototype.toString = function(encoding, start, end) {};109110Worker.prototype.ref = function() {};111Worker.prototype.unref = function() {};112113/**114* @type {number}115*/116fs.Stats.prototype.atimeMs;117118/**119* @type {number}120*/121fs.Stats.prototype.mtimeMs;122123/**124* @type {number}125*/126fs.Stats.prototype.ctimeMs;127128/**129* @type {number}130*/131fs.Stats.prototype.blksize;132133/**134* @param {string} p135* @return {boolean}136* @nosideeffects137*/138path.isAbsolute;139140/**141* @type {Object.<string,*>}142*/143path.posix;144145crypto.randomFillSync;146147148