From 54e93315ed9d6dd8934a7be04e99d5a2e4be20a5 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Sun, 29 Apr 2018 18:27:17 +0300 Subject: [PATCH] doc: specify types of listener parameter We cannot manage with `{any}` because `message` cannot be of `Symbol` or `undefined` types. PR-URL: https://github.com/nodejs/node/pull/20405 Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig --- doc/api/process.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/api/process.md b/doc/api/process.md index c973d15e12cef7..fdea86bf2d9039 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -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.