Skip to content

Commit d0b9ca8

Browse files
committed
Enhance WorkflowStatus type to include returnValue for completed status
1 parent 2099452 commit d0b9ca8

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
@@ -145,7 +145,7 @@ export type WorkflowDefinition<
145145

146146
export type WorkflowStatus =
147147
| { type: "inProgress"; running: OpaqueIds<Step>[] }
148-
| { type: "completed" }
148+
| { type: "completed"; returnValue: unknown }
149149
| { type: "canceled" }
150150
| { type: "failed"; error: string };
151151

@@ -249,7 +249,7 @@ export class WorkflowManager {
249249
case "failed":
250250
return { type: "failed", error: workflow.runResult.error };
251251
case "success":
252-
return { type: "completed" };
252+
return { type: "completed", returnValue: workflow.runResult.returnValue };
253253
}
254254
}
255255

0 commit comments

Comments
 (0)