Skip to content

Commit 09423d3

Browse files
committed
feat: expose our own console as a property of the global object
1 parent 6d4f2bb commit 09423d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/pythonmonkey/global.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ declare const python: {
2424
/** see `pm.eval` */
2525
declare function pmEval(code: string): any;
2626

27+
// Expose our own `console` as a property of the global object
28+
declare const console: import("console").Console;
29+
2730
// Keep this in sync with both https://hg.mozilla.org/releases/mozilla-esr102/file/a03fde6/js/public/Promise.h#l331
2831
// and https://github.com/nodejs/node/blob/v20.2.0/deps/v8/include/v8-promise.h#L30
2932
declare enum PromiseState { Pending = 0, Fulfilled = 1, Rejected = 2 }

0 commit comments

Comments
 (0)