worker.id is number, not string

This commit is contained in:
Oz Weiss
2017-10-19 21:32:06 +03:00
committed by GitHub
parent 66711b599c
commit ae4c440916
+1 -1
View File
@@ -1059,7 +1059,7 @@ declare module "cluster" {
}
export class Worker extends events.EventEmitter {
id: string;
id: number;
process: child.ChildProcess;
suicide: boolean;
send(message: any, sendHandle?: any, callback?: (error: Error) => void): boolean;