Skip to content

API code

Sample code

import * as T from 'types';
import * as utilityClassXyz from 'util/utilityClassXyz';
const add = require('add');

async function main(g: T.IAMGlobal) {
    let utilData = utilityClassXyz.methodName();
    let dependencyData = add([11.5,11.5]);
    return {
        utilData, dependencyData
module.exports = main;
  • In this code section API owner can write the custom code.
  • They can import any utility class and use it here.
  • Add dependencies in the 'Dependencies' tab, make it required in the code, and use that dependency.