@hotmeshio/hotmesh
Version:
Serverless Workflow
12 lines (11 loc) • 491 B
TypeScript
import { StringAnyType } from './common';
/**
* Emits events to the event bus provider. Topics are prefixed with the quorum namespace.
*
* @param {StringAnyType} events - A mapping of topic => message to publish.
* @param {{ once: boolean }} [config={ once: true }] - If `once` is true, events are emitted only once.
* @returns {Promise<boolean>} True after emission completes.
*/
export declare function emit(events: StringAnyType, config?: {
once: boolean;
}): Promise<boolean>;