actionhero
Version:
The reusable, scalable, and quick node.js API server for stateless and stateful applications
14 lines (11 loc) • 385 B
text/typescript
import { Action, action } from "./../index";
export class RecursiveAction extends Action {
name = "recursiveAction";
description = "I am an action that runs another action";
outputExample = {};
async run() {
const localResponse = { local: true };
const actionResponse = await action.run("randomNumber");
return Object.assign(actionResponse, localResponse);
}
}