UNPKG

@ilijanl/temporalio-utils

Version:

A set of utils around temporalio typescript sdk

23 lines (20 loc) 1.04 kB
import { W as WorkflowDefinition } from './definitions-DLuyb94F.js'; export { l as ActivitiesType, b as Activity, A as ActivityDefinition, h as ActivityDefinitionConfig, e as ActivityExecuteOptions, a as ActivityFn, k as ActivityType, I as InType, O as OutType, c as WorkflowFn, d as WorkflowImplementation, f as WorkflowType, i as defaultActivityOptions, j as defineActivity, g as defineWorkflow } from './definitions-DLuyb94F.js'; export { Duration } from '@temporalio/common'; declare const mapInputToArgs: <T>(input: T) => T[]; type WorkflowPayload<TInput> = { /** * The unique identifier of a workflow. */ workflowId?: string; /** * The input for the child workflow. */ input: TInput; }; declare const getWorkflowOptions: <TInput>(definition: WorkflowDefinition<TInput, unknown>, payload: WorkflowPayload<NoInfer<TInput>>) => { args: [TInput]; taskQueue: string | undefined; workflowId?: string; }; export { WorkflowDefinition, type WorkflowPayload, getWorkflowOptions, mapInputToArgs };