@hotmeshio/hotmesh
Version:
Serverless Workflow
10 lines (9 loc) • 376 B
TypeScript
import { HookOptions } from './common';
/**
* Spawns a hook from the main thread or a hook thread.
* If entity/workflowName are not provided, defaults to the current workflow.
*
* @param {HookOptions} options - Hook configuration options.
* @returns {Promise<string>} The resulting hook/stream ID.
*/
export declare function hook(options: HookOptions): Promise<string>;