@hotmeshio/hotmesh
Version:
Serverless Workflow
19 lines (18 loc) • 714 B
TypeScript
import { WorkflowOptions } from './common';
/**
* Spawns a child workflow and awaits the result, or if `await` is false, returns immediately.
* @template T
* @param {WorkflowOptions} options - Workflow options.
* @returns {Promise<T>} Result of the child workflow.
*/
export declare function execChild<T>(options: WorkflowOptions): Promise<T>;
/**
* Alias for execChild.
*/
export declare const executeChild: typeof execChild;
/**
* Spawns a child workflow and returns the child Job ID without awaiting its completion.
* @param {WorkflowOptions} options - Workflow options.
* @returns {Promise<string>} The child job ID.
*/
export declare function startChild(options: WorkflowOptions): Promise<string>;