doc: missing argument types for events methods#11802
doc: missing argument types for events methods#11802ameliavoncat wants to merge 1 commit intonodejs:masterfrom
Conversation
doc/api/events.md
Outdated
There was a problem hiding this comment.
The type here isn't correct. It can be zero or more of any kind of values. I'm not sure if we've yet "standardized" on what term to use as an 'any' type.
doc/api/events.md
Outdated
There was a problem hiding this comment.
We're more lax than this. We basically accept any value, it's just that (currently) it will be converted to a string before being used. So for example numbers, booleans, functions (the function's source will be used as the event name), etc. all work.
doc/api/events.md
Outdated
There was a problem hiding this comment.
I think it may make more sense to be more specific here and say 'integer.'
81c7f32 to
f581702
Compare
|
LGTM |
|
Landed in 38ba0c2. Thank you! :-) |
Refs: nodejs#9399 PR-URL: nodejs#11802 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
Refs: nodejs#9399 PR-URL: nodejs#11802 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
|
This does not land cleanly in LTS. Please feel free to manually backport. Please also feel free to replace the backport request label with do-not-land if it shouldn't land |
Checklist
Affected core subsystem(s)
documentation
Description of changes
Adds missing argument types to the docs for
eventmethodsIssue