fix(docs): Fix loop to iterate over results.runs (#3077)

To get access to the runs from `batch.triggerAndWait` use `results.runs`
This commit is contained in:
Eric Allam
2026-02-17 12:52:58 +00:00
committed by GitHub
parent 7af789bc3e
commit 4c986ad1eb
+1 -1
View File
@@ -541,7 +541,7 @@ export const parentTask = task({
{ id: "child-task-2", payload: { bar: 42 } }, // 👈 The payload is typed correctly based on the task `id`
]);
for (const result of results) {
for (const result of results.runs) {
if (result.ok) {
// 👇 Narrow the type of the result based on the taskIdentifier
switch (result.taskIdentifier) {