typings: add missing properties and method in Worker

PR-URL: https://github.com/nodejs/node/pull/60257
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Woohyun Sung 2025-10-14 17:40:54 +09:00 committed by Node.js GitHub Bot
parent 2a18aee4aa
commit 8656088090

View File

@ -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;