Open bozzelliandrea opened 1 week ago
I don't see an issue. The emitWarning function has nothing to do with emit function, despite the similar name.
Oh, you mean there is no documentation for the emit
function. @nodejs/process is that intentional? iirc it is, as inherited functions aren't documented. (For example, the other event listener functions aren't there)
@RedYetiDev Oh, you mean there is no documentation for the emit function
yes exactly, since it's a public function from the process, I thought there was some documentation
It probably just happened not to have any documentation because the documentation just says
https://github.com/nodejs/node/blob/2a965493a97917a3c3f39766effe66c3f388544c/doc/api/process.md#L22
and be done with it. But a documentation that references EventEmitter.emit
would probably help too. PR welcomed ;)
Affected URL(s)
https://nodejs.org/api/process.html
Description of the problem
inside process page there is the docs for
process.emitWarning()
but is missing for the functionprocess.emit()
with following signatures:is that correct?