Type aliases
WorkflowFactory
WorkflowFactory = (
requestBody?
) =>Promise
<ServerWorkflow
> |ServerWorkflow
Defined in: packages/server/src/types.ts:20
A factory function that creates a ServerWorkflow instance, possibly asynchronously. The requestBody parameter is the body from the request, which can be used to customize the workflow per request.
Parameters
requestBody?
any
Returns
Promise
<ServerWorkflow
> | ServerWorkflow