forked from NeilFraser/JS-Interpreter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mod.d.ts
58 lines (42 loc) · 1.12 KB
/
mod.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
export type { InitializationFunction , _Interpreter as Interpreter }
type InitializationFunction = (
interpreter : _Interpreter ,
global : any
) => void
declare class _Interpreter {
readonly OBJECT_PROTO : object
readonly value : any
constructor (
code : string ,
init ?: InitializationFunction
)
run() : void
setProperty (
object : any ,
name : string ,
value : any ,
descriptor ?: object
) : undefined | (( value : any ) => void )
createNativeFunction (
func : Function ,
isContructor : boolean
) : object
createObjectProto (
prototype : object
) : object
initGlobal (
object : any
) : void
pseudoToNative (
object : any ,
cycles ?: any
) : any
static NONCONFIGURABLE_READONLY_NONENUMERABLE_DESCRIPTOR : object
static READONLY_NONENUMERABLE_DESCRIPTOR : object
static NONENUMERABLE_DESCRIPTOR : object
static READONLY_DESCRIPTOR : object
static VARIABLE_DESCRIPTOR : object
}
declare global {
var Interpreter : typeof _Interpreter
}