File tree 8 files changed +239
-233
lines changed
8 files changed +239
-233
lines changed Original file line number Diff line number Diff line change 59
59
* References to constructor instances should use camelCase.
60
60
* References to methods should be used with parentheses: for example,
61
61
` socket.end() ` instead of ` socket.end ` .
62
+ * Function arguments or object properties should use the following format:
63
+ * <code >* \` name\` {type|type2} Optional description. \*\* Default:\*\* \` defaultValue\` </code >
64
+ * E.g. <code >* ` byteOffset ` {integer} Index of first byte to expose. ** Default:** ` 0 ` </code >
65
+ * The ` type ` should refer to a Node.js type or a [ JavaScript type] [ ]
66
+ * Function returns should use the following format:
67
+ * <code >* Returns: {type|type2} Optional description.</code >
68
+ * E.g. <code >* Returns: {AsyncHook} A reference to ` asyncHook ` .</code >
62
69
63
- [ plugin ] : http://editorconfig.org/#download
64
- [ Oxford comma ] : https://en.wikipedia.org/wiki/Serial_comma
65
70
[ Em dashes ] : https://en.wikipedia.org/wiki/Dash#Em_dash
71
+ [ Javascript type ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_types#Data_structures_and_types
72
+ [ Oxford comma ] : https://en.wikipedia.org/wiki/Serial_comma
66
73
[ The New York Times Manual of Style and Usage ] : https://en.wikipedia.org/wiki/The_New_York_Times_Manual_of_Style_and_Usage
74
+ [ plugin ] : http://editorconfig.org/#download
Original file line number Diff line number Diff line change @@ -1040,8 +1040,8 @@ has ended but before the JavaScript VM is terminated and Node.js shuts down.
1040
1040
1041
1041
#### void AtExit(callback, args)
1042
1042
1043
- * ` callback ` : ` void (*)(void*) ` - A pointer to the function to call at exit.
1044
- * ` args ` : ` void* ` - A pointer to pass to the callback at exit.
1043
+ * ` callback ` { void (\ * )(void\* )} A pointer to the function to call at exit.
1044
+ * ` args ` { void\* } A pointer to pass to the callback at exit.
1045
1045
1046
1046
Registers exit hooks that run after the event loop has ended but before the VM
1047
1047
is killed.
Original file line number Diff line number Diff line change @@ -202,8 +202,8 @@ added: v0.1.21
202
202
* ` actual ` {any}
203
203
* ` expected ` {any}
204
204
* ` message ` {any}
205
- * ` operator ` {string} (default: '!=')
206
- * ` stackStartFunction ` {function} (default: ` assert.fail ` )
205
+ * ` operator ` {string} ** Default: ** '!='
206
+ * ` stackStartFunction ` {function} ** Default: ** ` assert.fail `
207
207
208
208
Throws an ` AssertionError ` . If ` message ` is falsy, the error message is set as
209
209
the values of ` actual ` and ` expected ` separated by the provided ` operator ` .
You can’t perform that action at this time.
0 commit comments