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 2099452 commit d0b9ca8Copy full SHA for d0b9ca8
src/client/index.ts
@@ -145,7 +145,7 @@ export type WorkflowDefinition<
145
146
export type WorkflowStatus =
147
| { type: "inProgress"; running: OpaqueIds<Step>[] }
148
- | { type: "completed" }
+ | { type: "completed"; returnValue: unknown }
149
| { type: "canceled" }
150
| { type: "failed"; error: string };
151
@@ -249,7 +249,7 @@ export class WorkflowManager {
249
case "failed":
250
return { type: "failed", error: workflow.runResult.error };
251
case "success":
252
- return { type: "completed" };
+ return { type: "completed", returnValue: workflow.runResult.returnValue };
253
}
254
255
0 commit comments