Skip to content

Commit 8656088

Browse files
whsung0330nodejs-github-bot
authored andcommitted
typings: add missing properties and method in Worker
PR-URL: #60257 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 2a18aee commit 8656088

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

typings/internalBinding/worker.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ declare namespace InternalWorkerBinding {
1111
);
1212
startThread(): void;
1313
stopThread(): void;
14+
hasRef(): boolean;
1415
ref(): void;
1516
unref(): void;
1617
getResourceLimits(): Float64Array;
@@ -38,7 +39,9 @@ export interface WorkerBinding {
3839
Worker: typeof InternalWorkerBinding.Worker;
3940
getEnvMessagePort(): InternalMessagingBinding.MessagePort;
4041
threadId: number;
42+
threadName: string;
4143
isMainThread: boolean;
44+
isInternalThread: boolean;
4245
ownsProcessState: boolean;
4346
resourceLimits?: Float64Array;
4447
kMaxYoungGenerationSizeMb: number;

0 commit comments

Comments
 (0)