Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 54e9331

Browse filesBrowse files
vsemozhetbytMylesBorins
authored andcommitted
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>
1 parent b0c0352 commit 54e9331
Copy full SHA for 54e9331

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/process.md‎

Copy file name to clipboardExpand all lines: doc/api/process.md
+2-1Lines changed: 2 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ process.on('exit', (code) => {
8484
added: v0.5.10
8585
-->
8686

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.