OrchestrationHandler type

Type of a Generator that can be registered as an orchestration

type OrchestrationHandler = (
  context: OrchestrationContext
) => Generator<Task, unknown, any>