Skip to content

Commit 7d93c98

Browse files
authored
fix(workflow): executeChild returns Promise<WorfkflowResultType<T>> (#718)
1 parent 7010843 commit 7d93c98

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/workflow/src/workflow.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -765,9 +765,7 @@ export async function executeChild<T extends () => WorkflowReturnType>(
765765
*
766766
* @return The result of the child Workflow.
767767
*/
768-
export async function executeChild<T extends () => WorkflowReturnType>(
769-
workflowFunc: T
770-
): Promise<ChildWorkflowHandle<T>>;
768+
export async function executeChild<T extends () => WorkflowReturnType>(workflowFunc: T): Promise<WorkflowResultType<T>>;
771769

772770
export async function executeChild<T extends Workflow>(
773771
workflowTypeOrFunc: string | T,

0 commit comments

Comments
 (0)