Skip to content

Commit d5ec755

Browse files
committed
feat: Allow outputs to be null in NodeExecution and WorkflowNodeExecution types
1 parent 97c76b4 commit d5ec755

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

apps/api/src/runtime/base-runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ export class BaseRuntime extends WorkflowEntrypoint<Bindings, RuntimeParams> {
949949
return {
950950
nodeId: node.id,
951951
status: "skipped" as const,
952-
outputs: undefined,
952+
outputs: null,
953953
...skipInfo,
954954
};
955955
}

apps/web/src/components/workflow/workflow-types.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export type WorkflowExecutionStatus =
6464
export type WorkflowNodeExecution = {
6565
nodeId: string;
6666
status: NodeExecutionState;
67-
outputs?: Record<string, any>;
67+
outputs?: Record<string, any> | null;
6868
error?: string;
6969
};
7070

packages/types/src/workflow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export interface NodeExecution {
274274
nodeId: string;
275275
status: NodeExecutionStatus;
276276
error?: string;
277-
outputs?: Record<string, ParameterValue>;
277+
outputs?: Record<string, ParameterValue> | null;
278278
}
279279

280280
/**

0 commit comments

Comments
 (0)