mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
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:
1 parent
386ed6a06d
commit
e64de34b89
2 files changed
+17
No files matched your search
Vendored
+2
@@ -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
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user