Context

An asynchronous TypeScript/JavaScript function must report execution success or error to the context object (ctx). The context object has appropriate functions for this.

success

Indicates successful execution.

ctx.success("Result");

error

Indicates unsuccessful execution.

ctx.error(TcHmi.Errors.ERROR);