mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
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
This commit is contained in:
committed by
Masahiro Wakame
parent
f5d2481f7e
commit
75cf3ac5ed
Vendored
+3
-3
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user