mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
typings: define types for timers binding
PR-URL: https://github.com/nodejs/node/pull/40222 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
This commit is contained in:
2 files changed
+9
No files matched your search
@@ -7,6 +7,7 @@
|
||||
"./typings/internalBinding/messaging.d.ts",
|
||||
"./typings/internalBinding/options.d.ts",
|
||||
"./typings/internalBinding/serdes.d.ts",
|
||||
"./typings/internalBinding/timers.d.ts",
|
||||
"./typings/internalBinding/util.d.ts",
|
||||
"./typings/internalBinding/worker.d.ts",
|
||||
"./typings/internalBinding.d.ts",
|
||||
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
declare function InternalBinding(binding: 'timers'): {
|
||||
getLibuvNow(): number;
|
||||
setupTimers(immediateCallback: () => void, timersCallback: (now: number) => void): void;
|
||||
scheduleTimer(msecs: number): void;
|
||||
toggleTimerRef(value: boolean): void;
|
||||
toggleImmediateRef(value: boolean): void;
|
||||
immediateInfo: Uint32Array;
|
||||
};
|
||||
Reference in new issue
Block a user