How to define a Signal in TypeScript
- TypeScript
- JavaScript
import { defineSignal } from '@temporalio/workflow';
interface JoinInput {
userId: string;
groupId: string;
}
export const joinSignal = defineSignal<[JoinInput]>('join');
import { defineSignal } from '@temporalio/workflow';
export const joinSignal = defineSignal('join');