actionhero
    Preparing search index...

    Function runAction

    • Run an action via the specHelper server.

      Type Parameters

      • A extends void | Action = void

      Parameters

      • actionName: string
      • input: Record<string, any> | Partial<SpecHelperConnection> = {}

      Returns Promise<
          (
              A extends Action
                  ? AsyncReturnType<A<A>["run"]>
                  : { [key: string]: any }
          ) & {
              error?: any;
              messageId?: string;
              requesterInformation?: {
                  fingerprint: string;
                  id: string;
                  messageId: string;
                  receivedParams: { [key: string]: any };
                  remoteIP: string;
              };
              serverInformation?: {
                  apiVersion: string;
                  currentTime: number;
                  requestDuration: number;
                  serverName: string;
              };
          },
      >