From 214e3dc750315630b0374b99a0868fcdf28c6f06 Mon Sep 17 00:00:00 2001 From: Daniel Pinto <1619617+Cayan@users.noreply.github.com> Date: Thu, 1 Oct 2026 23:21:22 -0300 Subject: [PATCH] doc: add missing return types in cluster.md `worker.isConnected()` and `worker.isDead()` described their boolean result only in prose, so the documentation tooling had no return type for them. Signed-off-by: Daniel Pinto <1619617+Cayan@users.noreply.github.com> Assisted-by: a frontier reasoning model --- doc/api/cluster.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/api/cluster.md b/doc/api/cluster.md index 936a535977c5..6d3f9e6fc659 100644 --- a/doc/api/cluster.md +++ b/doc/api/cluster.md @@ -489,6 +489,8 @@ While a worker is alive, this is the key that indexes it in added: v0.11.14 --> +* Returns: {boolean} + This function returns `true` if the worker is connected to its primary via its IPC channel, `false` otherwise. A worker is connected to its primary after it has been created. It is disconnected after the `'disconnect'` event is emitted. @@ -499,6 +501,8 @@ has been created. It is disconnected after the `'disconnect'` event is emitted. added: v0.11.14 --> +* Returns: {boolean} + This function returns `true` if the worker's process has terminated (either because of exiting or being signaled). Otherwise, it returns `false`.