Frodo Library - v4.0.0-10
    Preparing search index...

    Type Alias IdmScript

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

    Methods

    • Compile a JS script

      Parameters

      • script: string

      Returns Promise<string | object>

      a promise resolving to 'true' or an error message

    • Run a JS script

      Parameters

      • script: string
      • Optionalglobals: { [key: string]: any }

      Returns Promise<any>

      a promise resolving to the script result