Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
doc: add process api data types to documentation#9505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Conversation
imatveev commented Nov 7, 2016 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
doc/api/process.md Outdated
| For example: | ||
| ```sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto about using {Integer}.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same goes for any other non-floating point number values.
imatveev commented Nov 8, 2016
Added changes according to @mscdex review. |
doc/api/process.md Outdated
| added: v0.2.0 | ||
| --> | ||
| * Return:{Object} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think "Return:" should be removed here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed.
mscdex commented Nov 8, 2016
LGTM |
| added: v0.1.104 | ||
| --> | ||
| *{String} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency with the other changes, maybe add a blank line after this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
mhdawson left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
silverwind commented Nov 11, 2016
Thanks! Landed in c184f22. |
PR-URL: #9505 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
PR-URL: #9505 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
MylesBorins commented Dec 13, 2016
is this accurate for v4 or v6? |
imatveev commented Dec 14, 2016
Checked on V6, can check on V4 if it needs to be done. |
PR-URL: #9505 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
PR-URL: #9505 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
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