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.
atob
btoa
1 parent 4968edd commit 520d3bdCopy full SHA for 520d3bd
python/pythonmonkey/global.d.ts
@@ -43,6 +43,10 @@ declare function pmEval(code: string): any;
43
// Expose our own `console` as a property of the global object
44
declare const console: import("console").Console;
45
46
+// Expose `atob`/`btoa` as properties of the global object
47
+declare const atob: typeof import("base64.js").atob;
48
+declare const btoa: typeof import("base64.js").btoa;
49
+
50
// Keep this in sync with both https://hg.mozilla.org/releases/mozilla-esr102/file/a03fde6/js/public/Promise.h#l331
51
// and https://github.com/nodejs/node/blob/v20.2.0/deps/v8/include/v8-promise.h#L30
52
declare enum PromiseState { Pending = 0, Fulfilled = 1, Rejected = 2 }
0 commit comments