Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ var buffer = {};
/**
* @param {...*} var_args
* @constructor
* @extends Array
* @nosideeffects
*/
buffer.Buffer = function(var_args) {};
Expand Down Expand Up @@ -107,7 +106,6 @@ buffer.Buffer.prototype.length;
* @param {number=} sourceStart
* @param {number=} sourceEnd
* @return {buffer.Buffer}
* @nosideeffects
*/
buffer.Buffer.prototype.copy = function(targetBuffer, targetStart, sourceStart, sourceEnd){};

Expand Down
8 changes: 4 additions & 4 deletions child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ child_process.ChildProcess.spawn = function(command, args, options) {};

/**
* @param {string} command
* @param {child_process.Options|function(Error, Buffer, Buffer)=} options
* @param {function(Error, Buffer, Buffer)=} callback
* @param {child_process.Options|function(Error, buffer.Buffer, buffer.Buffer)=} options
* @param {function(Error, buffer.Buffer, buffer.Buffer)=} callback
* @return {child_process.ChildProcess}
*/
child_process.exec = function(command, options, callback) {};
Expand All @@ -100,15 +100,15 @@ child_process.exec = function(command, options, callback) {};
* @param {string} file
* @param {Array.<string>} args
* @param {child_process.Options} options
* @param {function(Error, Buffer, Buffer)} callback
* @param {function(Error, buffer.Buffer, buffer.Buffer)} callback
* @return {child_process.ChildProcess}
*/
child_process.execFile = function(file, args, options, callback) {};

/**
* @param {string} modulePath
* @param {Array.<string>=} args
* @param {child_process.Options} options
* @param {child_process.Options=} options
* @return {child_process.ChildProcess}
*/
child_process.fork = function(modulePath, args, options) {};
4 changes: 2 additions & 2 deletions cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
*/

/**
* @extends events.EventEmitter
* @type events.EventEmitter
*/
var cluster = function() {};
var cluster;

/**
* @typedef {{exec: string, args: Array.<string>, silent: boolean}}
Expand Down
4 changes: 2 additions & 2 deletions contrib/Preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Preprocessor.indent = function(str, indent) {};
Preprocessor.nlToStr = function(str) {};

/**
* @param {object.<strin,string>} defines
* @param {Object.<string,string>} defines
* @param {string} expr
* @return {*}
* @throws {Error}
Expand All @@ -72,7 +72,7 @@ Preprocessor.nlToStr = function(str) {};
Preprocessor.evaluate = function(defines, expr) {};

/**
* @param {object.<string,*>} directives
* @param {Object.<string,*>} directives
* @return {string}
*/
Preprocessor.prototype.process = function(directives) {};
Expand Down
12 changes: 6 additions & 6 deletions contrib/ProtoBuf.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*/

/**
* {@type object.<string.*>}
* {@type Object.<string.*>}
*/
var ProtoBuf = {};

Expand All @@ -38,7 +38,7 @@ var ProtoBuf = {};
ProtoBuf.VERSION = "0.9.2";

/**
* @type {!object.<string,number>}
* @type {!Object.<string,number>}
* @const
*/
ProtoBuf.WIRE_TYPES = {};
Expand Down Expand Up @@ -81,7 +81,7 @@ ProtoBuf.WIRE_TYPES.BITS32 = 5;

/**
* @dict
* @type {!object.<string,{name: string, wireType: number}>}
* @type {!Object.<string,{name: string, wireType: number}>}
* @const
*/
ProtoBuf.TYPES = {
Expand Down Expand Up @@ -136,12 +136,12 @@ ProtoBuf.TYPES = {
};

/**
* @type {!object.<string,string|RegExp>}
* @type {!Object.<string,string|RegExp>}
*/
ProtoBuf.Lang = {};

/**
* @type {!object.<string,function>}
* @type {!Object.<string,function>}
*/
ProtoBuf.DotProto = {};

Expand All @@ -162,7 +162,7 @@ ProtoBuf.DotProto.Tokenizer.prototype.source;
ProtoBuf.DotProto.Tokenizer.prototype.index;

/**
* @type {array.<string>}
* @type {Array.<string>}
*/
ProtoBuf.DotProto.Tokenizer.prototype.stack;

Expand Down
16 changes: 8 additions & 8 deletions contrib/Ws.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ ws.Server = function(options, callback) {};
ws.Server.prototype.close = function(code, data) {};

/**
* @param {http.ServerRequest} request
* @param {http.IncomingMessage} request
* @param {net.Socket} socket
* @param {string} upgradeHead
* @param {function(...)} callback
Expand All @@ -57,7 +57,7 @@ ws.Server.prototype.handleUpgrade = function(request, socket, upgradeHead, callb

/**
* @param {string} address
* @param {object.<string,*>=} options
* @param {Object.<string,*>=} options
* @constructor
* @extends events.EventEmitter
*/
Expand All @@ -84,7 +84,7 @@ ws.WebSocket.prototype.protocolVersion;
ws.WebSocket.prototype.url;

/**
* @type {object.<string,*>}
* @type {Object.<string,*>}
*/
ws.WebSocket.prototype.supports;

Expand All @@ -100,14 +100,14 @@ ws.WebSocket.prototype.pause = function() {};

/**
* @param {*=} data
* @param {object.<string,*>=} options
* @param {Object.<string,*>=} options
* @param {boolean=} dontFailWhenClosed
*/
ws.WebSocket.prototype.ping = function(data, options, dontFailWhenClosed) {};

/**
* @param {*=}data
* @param {object.<string,*>=} options
* @param {Object.<string,*>=} options
* @param {boolean=} dontFailWhenClosed
*/
ws.WebSocket.prototype.pong = function(data, options, dontFailWhenClosed) {};
Expand All @@ -118,13 +118,13 @@ ws.WebSocket.prototype.resume = function() {};

/**
* @param {*} data
* @param {object.<string,*>=} options
* @param {Object.<string,*>=} options
* @param {function(...[*])=} callback
*/
ws.WebSocket.prototype.send = function(data, options, callback) {};

/**
* @param {object.<string,*>|function(string, boolean)} options
* @param {Object.<string,*>|function(string, boolean)} options
* @param {function(string, boolean)=} callback
*/
ws.WebSocket.prototype.stream = function(options, callback) {};
Expand All @@ -149,6 +149,6 @@ ws.WebSocket.prototype.onerror = function(error) {};
ws.WebSocket.prototype.onclose = function(code, message) {};

/**
* @type {?function(*, object.<string,*>)}
* @type {?function(*, Object.<string,*>)}
*/
ws.WebSocket.prototype.onmessage = function(data, flags) {};
6 changes: 1 addition & 5 deletions core.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
* @author Daniel Wirtz <dcode@dcode.io>
*/

/**
*/
Object.prototype.inspect = function() {};

/**
* @param name
* @return {*}
Expand Down Expand Up @@ -73,7 +69,7 @@ var exports;
module.exports;

/**
* @type {require}
* @type {function(string)}
*/
module.require;

Expand Down
Loading