mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 00:20:08 +01:00
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:
parent
2a18aee4aa
commit
8656088090
3
typings/internalBinding/worker.d.ts
vendored
3
typings/internalBinding/worker.d.ts
vendored
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user