From b4e99c01a95804d9afa0952d581a65829c552656 Mon Sep 17 00:00:00 2001 From: Oz Weiss Date: Thu, 19 Oct 2017 17:27:47 +0300 Subject: [PATCH] fix Worker.id type https://nodejs.org/docs/latest-v7.x/api/cluster.html#cluster_worker_id --- types/node/v7/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/node/v7/index.d.ts b/types/node/v7/index.d.ts index fc6cd33091..9d69d53033 100644 --- a/types/node/v7/index.d.ts +++ b/types/node/v7/index.d.ts @@ -850,7 +850,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;