Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

Commit e891b4f

Browse files
committed
2 parents 29c4bf0 + 89d61c5 commit e891b4f

19 files changed

+265
-266
lines changed

buffer.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ var buffer = {};
3636
/**
3737
* @param {...*} var_args
3838
* @constructor
39-
* @extends Array
4039
* @nosideeffects
4140
*/
4241
buffer.Buffer = function(var_args) {};
@@ -107,7 +106,6 @@ buffer.Buffer.prototype.length;
107106
* @param {number=} sourceStart
108107
* @param {number=} sourceEnd
109108
* @return {buffer.Buffer}
110-
* @nosideeffects
111109
*/
112110
buffer.Buffer.prototype.copy = function(targetBuffer, targetStart, sourceStart, sourceEnd){};
113111

child_process.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ child_process.ChildProcess.spawn = function(command, args, options) {};
9090

9191
/**
9292
* @param {string} command
93-
* @param {child_process.Options|function(Error, Buffer, Buffer)=} options
94-
* @param {function(Error, Buffer, Buffer)=} callback
93+
* @param {child_process.Options|function(Error, buffer.Buffer, buffer.Buffer)=} options
94+
* @param {function(Error, buffer.Buffer, buffer.Buffer)=} callback
9595
* @return {child_process.ChildProcess}
9696
*/
9797
child_process.exec = function(command, options, callback) {};
@@ -100,15 +100,15 @@ child_process.exec = function(command, options, callback) {};
100100
* @param {string} file
101101
* @param {Array.<string>} args
102102
* @param {child_process.Options} options
103-
* @param {function(Error, Buffer, Buffer)} callback
103+
* @param {function(Error, buffer.Buffer, buffer.Buffer)} callback
104104
* @return {child_process.ChildProcess}
105105
*/
106106
child_process.execFile = function(file, args, options, callback) {};
107107

108108
/**
109109
* @param {string} modulePath
110110
* @param {Array.<string>=} args
111-
* @param {child_process.Options} options
111+
* @param {child_process.Options=} options
112112
* @return {child_process.ChildProcess}
113113
*/
114114
child_process.fork = function(modulePath, args, options) {};

cluster.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
*/
3030

3131
/**
32-
* @extends events.EventEmitter
32+
* @type events.EventEmitter
3333
*/
34-
var cluster = function() {};
34+
var cluster;
3535

3636
/**
3737
* @typedef {{exec: string, args: Array.<string>, silent: boolean}}

contrib/Preprocessor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Preprocessor.indent = function(str, indent) {};
6363
Preprocessor.nlToStr = function(str) {};
6464

6565
/**
66-
* @param {object.<strin,string>} defines
66+
* @param {Object.<string,string>} defines
6767
* @param {string} expr
6868
* @return {*}
6969
* @throws {Error}
@@ -72,7 +72,7 @@ Preprocessor.nlToStr = function(str) {};
7272
Preprocessor.evaluate = function(defines, expr) {};
7373

7474
/**
75-
* @param {object.<string,*>} directives
75+
* @param {Object.<string,*>} directives
7676
* @return {string}
7777
*/
7878
Preprocessor.prototype.process = function(directives) {};

contrib/ProtoBuf.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828

2929
/**
30-
* {@type object.<string.*>}
30+
* {@type Object.<string.*>}
3131
*/
3232
var ProtoBuf = {};
3333

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

4040
/**
41-
* @type {!object.<string,number>}
41+
* @type {!Object.<string,number>}
4242
* @const
4343
*/
4444
ProtoBuf.WIRE_TYPES = {};
@@ -81,7 +81,7 @@ ProtoBuf.WIRE_TYPES.BITS32 = 5;
8181

8282
/**
8383
* @dict
84-
* @type {!object.<string,{name: string, wireType: number}>}
84+
* @type {!Object.<string,{name: string, wireType: number}>}
8585
* @const
8686
*/
8787
ProtoBuf.TYPES = {
@@ -136,12 +136,12 @@ ProtoBuf.TYPES = {
136136
};
137137

138138
/**
139-
* @type {!object.<string,string|RegExp>}
139+
* @type {!Object.<string,string|RegExp>}
140140
*/
141141
ProtoBuf.Lang = {};
142142

143143
/**
144-
* @type {!object.<string,function>}
144+
* @type {!Object.<string,function>}
145145
*/
146146
ProtoBuf.DotProto = {};
147147

@@ -162,7 +162,7 @@ ProtoBuf.DotProto.Tokenizer.prototype.source;
162162
ProtoBuf.DotProto.Tokenizer.prototype.index;
163163

164164
/**
165-
* @type {array.<string>}
165+
* @type {Array.<string>}
166166
*/
167167
ProtoBuf.DotProto.Tokenizer.prototype.stack;
168168

contrib/Ws.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ ws.Server = function(options, callback) {};
4848
ws.Server.prototype.close = function(code, data) {};
4949

5050
/**
51-
* @param {http.ServerRequest} request
51+
* @param {http.IncomingMessage} request
5252
* @param {net.Socket} socket
5353
* @param {string} upgradeHead
5454
* @param {function(...)} callback
@@ -57,7 +57,7 @@ ws.Server.prototype.handleUpgrade = function(request, socket, upgradeHead, callb
5757

5858
/**
5959
* @param {string} address
60-
* @param {object.<string,*>=} options
60+
* @param {Object.<string,*>=} options
6161
* @constructor
6262
* @extends events.EventEmitter
6363
*/
@@ -84,7 +84,7 @@ ws.WebSocket.prototype.protocolVersion;
8484
ws.WebSocket.prototype.url;
8585

8686
/**
87-
* @type {object.<string,*>}
87+
* @type {Object.<string,*>}
8888
*/
8989
ws.WebSocket.prototype.supports;
9090

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

101101
/**
102102
* @param {*=} data
103-
* @param {object.<string,*>=} options
103+
* @param {Object.<string,*>=} options
104104
* @param {boolean=} dontFailWhenClosed
105105
*/
106106
ws.WebSocket.prototype.ping = function(data, options, dontFailWhenClosed) {};
107107

108108
/**
109109
* @param {*=}data
110-
* @param {object.<string,*>=} options
110+
* @param {Object.<string,*>=} options
111111
* @param {boolean=} dontFailWhenClosed
112112
*/
113113
ws.WebSocket.prototype.pong = function(data, options, dontFailWhenClosed) {};
@@ -118,13 +118,13 @@ ws.WebSocket.prototype.resume = function() {};
118118

119119
/**
120120
* @param {*} data
121-
* @param {object.<string,*>=} options
121+
* @param {Object.<string,*>=} options
122122
* @param {function(...[*])=} callback
123123
*/
124124
ws.WebSocket.prototype.send = function(data, options, callback) {};
125125

126126
/**
127-
* @param {object.<string,*>|function(string, boolean)} options
127+
* @param {Object.<string,*>|function(string, boolean)} options
128128
* @param {function(string, boolean)=} callback
129129
*/
130130
ws.WebSocket.prototype.stream = function(options, callback) {};
@@ -149,6 +149,6 @@ ws.WebSocket.prototype.onerror = function(error) {};
149149
ws.WebSocket.prototype.onclose = function(code, message) {};
150150

151151
/**
152-
* @type {?function(*, object.<string,*>)}
152+
* @type {?function(*, Object.<string,*>)}
153153
*/
154154
ws.WebSocket.prototype.onmessage = function(data, flags) {};

core.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
* @author Daniel Wirtz <[email protected]>
2323
*/
2424

25-
/**
26-
*/
27-
Object.prototype.inspect = function() {};
28-
2925
/**
3026
* @param name
3127
* @return {*}
@@ -73,7 +69,7 @@ var exports;
7369
module.exports;
7470

7571
/**
76-
* @type {require}
72+
* @type {function(string)}
7773
*/
7874
module.require;
7975

0 commit comments

Comments
 (0)