Handler
Handler<
AcceptEvents
,Result
,Context
> = (context
, …events
) =>Result
|Promise
<Result
>
Defined in: core/src/core/context.ts:16
Type Parameters
Section titled “Type Parameters”AcceptEvents
Section titled “AcceptEvents”AcceptEvents
extends WorkflowEvent
<any
>[]
Result
Section titled “Result”Result
extends WorkflowEventData
<any
> | void
Context
Section titled “Context”Context
extends WorkflowContext
= WorkflowContext
Parameters
Section titled “Parameters”context
Section titled “context”Context
events
Section titled “events”…\{ [K in keyof AcceptEvents]: ReturnType<AcceptEvents[K]["with"]> \}
Returns
Section titled “Returns”Result
| Promise
<Result
>