From 75cf3ac5ede1eb563d22ce3b54fb9de4171e7a34 Mon Sep 17 00:00:00 2001 From: poseidonCore Date: Tue, 30 Aug 2016 23:10:55 +1000 Subject: [PATCH] Worker.send and ChildProcess.send should return Booleans (#10866) https://nodejs.org/dist/latest-v6.x/docs/api/all.html#child_process_child_send_message_sendhandle_options_callback https://nodejs.org/dist/latest-v6.x/docs/api/all.html#cluster_worker_send_message_sendhandle_callback --- node/node.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/node/node.d.ts b/node/node.d.ts index 731b136585..c7df8463b3 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -749,7 +749,7 @@ declare module "cluster" { id: string; process: child.ChildProcess; suicide: boolean; - send(message: any, sendHandle?: any): void; + send(message: any, sendHandle?: any): boolean; kill(signal?: string): void; destroy(signal?: string): void; disconnect(): void; @@ -1071,7 +1071,7 @@ declare module "child_process" { stdio: [stream.Writable, stream.Readable, stream.Readable]; pid: number; kill(signal?: string): void; - send(message: any, sendHandle?: any): void; + send(message: any, sendHandle?: any): boolean; connected: boolean; disconnect(): void; unref(): void; @@ -2628,4 +2628,4 @@ declare module "constants" { declare module "process" { export = process; -} \ No newline at end of file +}