Skip to main content

How to define a Signal in TypeScript

defineSignal

import { defineSignal } from '@temporalio/workflow';

interface JoinInput {
userId: string;
groupId: string;
}

export const joinSignal = defineSignal<[JoinInput]>('join');