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 authored and Antoine du Hamel committed 2026-02-19 18:46:01 +01:00
1 parent 1e8b6d5686
commit d6b908917c
1 file changed
+3
+3
View File
@@ -11,6 +11,7 @@ declare namespace InternalWorkerBinding {
);
startThread(): void;
stopThread(): void;
hasRef(): boolean;
ref(): void;
unref(): void;
getResourceLimits(): Float64Array;
@@ -27,7 +28,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;