We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10d5ce2 commit 33c1d06Copy full SHA for 33c1d06
src/client/index.ts
@@ -76,7 +76,7 @@ export type WorkflowDefinition<
76
77
export type WorkflowStatus =
78
| { type: "inProgress"; running: OpaqueIds<Step>[] }
79
- | { type: "completed" }
+ | { type: "completed"; result: unknown }
80
| { type: "canceled" }
81
| { type: "failed"; error: string };
82
@@ -185,7 +185,7 @@ export class WorkflowManager {
185
case "failed":
186
return { type: "failed", error: workflow.runResult.error };
187
case "success":
188
- return { type: "completed" };
+ return { type: "completed", result: workflow.runResult.returnValue };
189
}
190
191
0 commit comments