FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

typings: add watchdog internal binding types · nodejs/node@215223d · GitHub

/ node Public

Commit 215223d

Browse files
authored andcommitted
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: #65228 Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 815424d commit 215223d

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

‎typings/globals.d.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import { URLPatternBinding } from "./internalBinding/url_pattern";
3535
import { UtilBinding } from './internalBinding/util';
3636
import { UVBinding } from './internalBinding/uv';
3737
import { WASIBinding } from './internalBinding/wasi';
38+
import { WatchdogBinding } from './internalBinding/watchdog';
3839
import { WorkerBinding } from './internalBinding/worker';
3940
import { ZlibBinding } from './internalBinding/zlib';
4041

@@ -76,6 +77,7 @@ interface InternalBindingMap {
7677
util: UtilBinding;
7778
uv: UVBinding;
7879
wasi: WASIBinding;
80+
watchdog: WatchdogBinding;
7981
worker: WorkerBinding;
8082
zlib: ZlibBinding;
8183
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
declare namespace InternalWatchdogBinding {
2+
class TraceSigintWatchdog {
3+
constructor();
4+
start(): void;
5+
stop(): void;
6+
close(callback?: () => void): void;
7+
hasRef(): boolean;
8+
ref(): void;
9+
unref(): void;
10+
}
11+
}
12+
13+
export interface WatchdogBinding {
14+
TraceSigintWatchdog: typeof InternalWatchdogBinding.TraceSigintWatchdog;
15+
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL