Skip to content

Commit 4c8889c

Browse files
authored
Fix argument name in executeChild signature (#1171)
## What was changed An argument name in a function type signature. ## Why? The semantics implied by the name were incorrect. ## Checklist 2. How was this tested: `npm run test` 4. Any docs updates needed? I believe that the API reference docs at https://typescript.temporal.io/api/namespaces/workflow#executechild will update automatically although I haven't researched exactly how that happens. I believe that this change should not have any backwards compatibility problems, although it is technically possible that something could be introspecting on the argument name.
1 parent 0a79208 commit 4c8889c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/workflow/src/workflow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ export async function executeChild<T extends Workflow>(
774774
* @return The result of the child Workflow.
775775
*/
776776
export async function executeChild<T extends Workflow>(
777-
workflowType: T,
777+
workflowFunc: T,
778778
options: WithWorkflowArgs<T, ChildWorkflowOptions>
779779
): Promise<WorkflowResultType<T>>;
780780

0 commit comments

Comments
 (0)