IdmScript: {
compileScript(script: string): Promise<string | object>;
evaluateScript(
script: string,
globals?: { [key: string]: any },
): Promise<any>;
}
Type declaration
compileScript:function
compileScript(script: string): Promise<string | object> Returns Promise<string | object>
a promise resolving to 'true' or an error message
evaluateScript:function
evaluateScript(script: string, globals?: { [key: string]: any }): Promise<any> Parameters
- script: string
Optional
globals: { [key: string]: any }
Returns Promise<any>
a promise resolving to the script result
Compile a JS script