Skip to content

Commit 33c1d06

Browse files
committed
surface return result in completed status
1 parent 10d5ce2 commit 33c1d06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export type WorkflowDefinition<
7676

7777
export type WorkflowStatus =
7878
| { type: "inProgress"; running: OpaqueIds<Step>[] }
79-
| { type: "completed" }
79+
| { type: "completed"; result: unknown }
8080
| { type: "canceled" }
8181
| { type: "failed"; error: string };
8282

@@ -185,7 +185,7 @@ export class WorkflowManager {
185185
case "failed":
186186
return { type: "failed", error: workflow.runResult.error };
187187
case "success":
188-
return { type: "completed" };
188+
return { type: "completed", result: workflow.runResult.returnValue };
189189
}
190190
}
191191

0 commit comments

Comments
 (0)