doc: add process api data types to documentation#9505
doc: add process api data types to documentation#9505imatveev wants to merge 4 commits intonodejs:masterfrom
Conversation
doc/api/process.md
Outdated
|
|
||
| For example: | ||
|
|
||
| ```sh |
There was a problem hiding this comment.
This shouldn't be sh if we're converting it to a JavaScript string value, it should be js.
doc/api/process.md
Outdated
|
|
||
| * `previousValue` {Object} A previous return value from calling | ||
| `process.cpuUsage()` | ||
| * return: {Object} |
There was a problem hiding this comment.
Can you capitalize every instance of 'return' to look like 'Return'?
doc/api/process.md
Outdated
| added: v0.11.8 | ||
| --> | ||
|
|
||
| * {Number} |
There was a problem hiding this comment.
You might be more specific here and use {Integer} instead.
doc/api/process.md
Outdated
| added: v0.1.28 | ||
| --> | ||
|
|
||
| * return: {Number} |
There was a problem hiding this comment.
Ditto about using {Integer}.
There was a problem hiding this comment.
Same goes for any other non-floating point number values.
|
Added changes according to @mscdex review. |
doc/api/process.md
Outdated
| added: v0.2.0 | ||
| --> | ||
|
|
||
| * Return: {Object} |
There was a problem hiding this comment.
I think "Return:" should be removed here.
|
LGTM |
| added: v0.1.104 | ||
| --> | ||
|
|
||
| * {String} |
There was a problem hiding this comment.
For consistency with the other changes, maybe add a blank line after this line.
|
Thanks! Landed in c184f22. |
PR-URL: #9505 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Roman Reiss <me@silverwind.io>
PR-URL: #9505 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Roman Reiss <me@silverwind.io>
|
is this accurate for v4 or v6? |
|
Checked on V6, can check on V4 if it needs to be done. |
PR-URL: #9505 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Roman Reiss <me@silverwind.io>
PR-URL: #9505 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Roman Reiss <me@silverwind.io>
Checklist
Affected core subsystem(s)
doc
Description of change
Clarified part of data types of properties and return values of
processmodule in docs due to item