mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05: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:
1 parent
1e8b6d5686
commit
d6b908917c
1 file changed
+3
Vendored
+3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user