PythonMonkey   v1.1.1 (dev)
Loading...
Searching...
No Matches
global.d.ts File Reference

Enumerations

enum  PromiseState { Pending = 0 , Fulfilled = 1 , Rejected = 2 }
 

Variables

declare const python
 
print(...values:any) eval(code:string, globals?:Record< string, any >, locals?:Record< string, any >) exec(code:string, globals?:Record< string, any >, locals?:Record< string, any >) stdout
 
 read (n:number)
 
stderr __pad0__
 
getenv(key:string) exit(exitCode:number) load(filename:string) paths
 
var declare __filename
 
var declare __dirname
 
var declare console
 
var declare atob
 
var declare btoa
 
var declare setTimeout
 
var declare clearTimeout
 
var declare setInterval
 
var declare clearInterval
 
var declare URL
 
var declare URLSearchParams
 
var declare XMLHttpRequest
 
declare type TypedArray
 

Detailed Description

Author
Tom Tang xmade.nosp@m.r@di.nosp@m.strib.nosp@m.utiv.nosp@m.e.net.nosp@m.work
Date
May 2023

Enumeration Type Documentation

◆ PromiseState

Enumerator
Pending 
Fulfilled 
Rejected 

Variable Documentation

◆ __dirname

var declare __dirname

◆ __filename

var declare __filename

◆ __pad0__

stderr __pad0__

Python sys.stderr.

◆ atob

var declare atob

◆ btoa

var declare btoa

◆ clearInterval

var declare clearInterval

◆ clearTimeout

var declare clearTimeout

◆ console

var declare console

see pm.eval

◆ paths

getenv (key: string) exit (exitCode: number) load (filename: string) paths

Python os.getenv. Get an environment variable, return undefined if it doesn't exist. Python exit. Exit the program. Loads a python module using importlib, prefills it with an exports object and returns the module. Python sys.path

◆ python

declare const python

◆ read

read(n:number) (   n:number)

◆ setInterval

var declare setInterval

◆ setTimeout

var declare setTimeout

◆ stdout

print (...values: any) eval (code: string, globals?: Record<string, any>, locals?: Record<string, any>) exec (code: string, globals?: Record<string, any>, locals?: Record<string, any>) stdout

Python print Python eval Python exec Python sys.stdout.

◆ TypedArray

declare type TypedArray
Initial value:
=
| Uint8Array
| Uint8ClampedArray
| Uint16Array
| Uint32Array
| Int8Array
| Int16Array
| Int32Array
| Float32Array
| Float64Array
| BigUint64Array
| BigInt64Array

◆ URL

var declare URL

◆ URLSearchParams

var declare URLSearchParams

◆ XMLHttpRequest

var declare XMLHttpRequest