Skip to content

Commit ebed550

Browse files
committed
chore: fix json output types
1 parent b2f3dec commit ebed550

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/respect-core/src/modules/cli-output/json-logs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ function composeJsonSteps(
5757
step: Step | WorkflowExecutionResult,
5858
workflowId: string,
5959
ctx: TestContext
60-
): StepExecutionResult | WorkflowExecutionResult {
60+
): StepExecutionResult | WorkflowExecutionResultJson {
6161
if ('executedSteps' in step) {
62-
return step as WorkflowExecutionResult;
62+
return step as WorkflowExecutionResultJson;
6363
}
6464

6565
const publicStep = ctx.$workflows[workflowId].steps[step.stepId];

packages/respect-core/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export interface WorkflowExecutionResult {
239239
}
240240

241241
export type WorkflowExecutionResultJson = Omit<WorkflowExecutionResult, 'executedSteps'> & {
242-
executedSteps: (StepExecutionResult | WorkflowExecutionResult)[];
242+
executedSteps: (StepExecutionResult | WorkflowExecutionResultJson)[];
243243
status: ExecutionStatus;
244244
};
245245

0 commit comments

Comments
 (0)