Skip to main content

How to send a Signal with Start in TypeScript

WorkflowClient.signalWithStart

import { WorkflowClient } from '@temporalio/client';
import { yourWorkflow, joinSignal } from './workflows';

const client = new WorkflowClient();

await client.signalWithStart(yourWorkflow, {
workflowId: 'workflow-id-123',
args: [{ foo: 1 }],
signal: joinSignal,
signalArgs: [{ userId: 'user-1', groupId: 'group-1' }],
});