We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
setTimeout
clearTimeout
1 parent 4643390 commit 29b8a7cCopy full SHA for 29b8a7c
python/pythonmonkey/global.d.ts
@@ -48,6 +48,10 @@ declare var console: import("console").Console;
48
declare var atob: typeof import("base64").atob;
49
declare var btoa: typeof import("base64").btoa;
50
51
+// Expose `setTimeout`/`clearTimeout` APIs
52
+declare var setTimeout: typeof import("timers").setTimeout;
53
+declare var clearTimeout: typeof import("timers").clearTimeout;
54
+
55
// Keep this in sync with both https://hg.mozilla.org/releases/mozilla-esr102/file/a03fde6/js/public/Promise.h#l331
56
// and https://github.com/nodejs/node/blob/v20.2.0/deps/v8/include/v8-promise.h#L30
57
declare enum PromiseState { Pending = 0, Fulfilled = 1, Rejected = 2 }
0 commit comments