Permalink
Browse files

doc: specify types of listener parameter

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 Apr 29, 2018
1 parent 1c530e8 commit aaca38a26118c9d7d8409fa3a8643149f148641f
Showing with 2 additions and 1 deletion.
  1. +2 −1 doc/api/process.md
View
@@ -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.

0 comments on commit aaca38a

Please sign in to comment.