IdmScript: {
    compileScript(script: string): Promise<string | object>;
    evaluateScript(script: string, globals?: {
        [key: string]: any;
    }): Promise<any>;
}

Type declaration

  • compileScript:function
    • Compile a JS script

      Parameters

      • script: string

      Returns Promise<string | object>

      a promise resolving to 'true' or an error message

  • evaluateScript:function
    • Run a JS script

      Parameters

      • script: string
      • Optional globals: {
            [key: string]: any;
        }
        • [key: string]: any

      Returns Promise<any>

      a promise resolving to the script result