typings: add watchdog internal binding types

Add a WatchdogBinding declaration for internalBinding('watchdog')
and wire it into InternalBindingMap.

Signed-off-by: leah-1ee <selee3196@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/65228
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Seongeun Lee authored and Antoine du Hamel committed 2026-08-27 14:17:06 +02:00
1 parent 386ed6a06d
commit e64de34b89
2 files changed
+17

No files matched your search

+2
View File
@@ -35,6 +35,7 @@ import { URLPatternBinding } from "./internalBinding/url_pattern";
import { UtilBinding } from './internalBinding/util';
import { UVBinding } from './internalBinding/uv';
import { WASIBinding } from './internalBinding/wasi';
import { WatchdogBinding } from './internalBinding/watchdog';
import { WorkerBinding } from './internalBinding/worker';
import { ZlibBinding } from './internalBinding/zlib';
@@ -76,6 +77,7 @@ interface InternalBindingMap {
util: UtilBinding;
uv: UVBinding;
wasi: WASIBinding;
watchdog: WatchdogBinding;
worker: WorkerBinding;
zlib: ZlibBinding;
}
+15
View File
@@ -0,0 +1,15 @@
declare namespace InternalWatchdogBinding {
class TraceSigintWatchdog {
constructor();
start(): void;
stop(): void;
close(callback?: () => void): void;
hasRef(): boolean;
ref(): void;
unref(): void;
}
}
export interface WatchdogBinding {
TraceSigintWatchdog: typeof InternalWatchdogBinding.TraceSigintWatchdog;
}