Skip to content

Commit

Permalink
doc: specify types of listener parameter
Browse files Browse the repository at this point in the history
We cannot manage with `{any}` because `message` cannot be
of `Symbol` or `undefined` types.

PR-URL: #20405
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
vsemozhetbyt committed May 2, 2018
1 parent 1c530e8 commit aaca38a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/api/process.md
Expand Up @@ -84,7 +84,8 @@ process.on('exit', (code) => {
added: v0.5.10
-->

* `message` {Object} a parsed JSON object or primitive value.
* `message` { Object | boolean | number | string | null } a parsed JSON object
or a serializable primitive value.
* `sendHandle` {net.Server|net.Socket} a [`net.Server`][] or [`net.Socket`][]
object, or undefined.

Expand Down

0 comments on commit aaca38a

Please sign in to comment.