From 86560880905cf11ea49a5dfb72505fe1ef856eaf Mon Sep 17 00:00:00 2001 From: Woohyun Sung Date: Tue, 14 Oct 2025 17:40:54 +0900 Subject: [PATCH] typings: add missing properties and method in Worker PR-URL: https://github.com/nodejs/node/pull/60257 Reviewed-By: Yagiz Nizipli Reviewed-By: Chemi Atlow Reviewed-By: Colin Ihrig --- typings/internalBinding/worker.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/typings/internalBinding/worker.d.ts b/typings/internalBinding/worker.d.ts index e98cd62b21..e168ff8abb 100644 --- a/typings/internalBinding/worker.d.ts +++ b/typings/internalBinding/worker.d.ts @@ -11,6 +11,7 @@ declare namespace InternalWorkerBinding { ); startThread(): void; stopThread(): void; + hasRef(): boolean; ref(): void; unref(): void; getResourceLimits(): Float64Array; @@ -38,7 +39,9 @@ export interface WorkerBinding { Worker: typeof InternalWorkerBinding.Worker; getEnvMessagePort(): InternalMessagingBinding.MessagePort; threadId: number; + threadName: string; isMainThread: boolean; + isInternalThread: boolean; ownsProcessState: boolean; resourceLimits?: Float64Array; kMaxYoungGenerationSizeMb: number;