From 53ddea717c6e657ae85b9c591406110cb47b4e6a Mon Sep 17 00:00:00 2001 From: Adrien de Peretti Date: Mon, 15 Jul 2024 13:40:03 +0200 Subject: [PATCH] fix: workflow return type inf missing type (#8133) --- .../core/workflows-sdk/src/utils/composer/create-workflow.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/workflows-sdk/src/utils/composer/create-workflow.ts b/packages/core/workflows-sdk/src/utils/composer/create-workflow.ts index 5d706e1cad..29d6cef2fe 100644 --- a/packages/core/workflows-sdk/src/utils/composer/create-workflow.ts +++ b/packages/core/workflows-sdk/src/utils/composer/create-workflow.ts @@ -4,7 +4,7 @@ import { WorkflowManager, } from "@medusajs/orchestration" import { LoadedModule, MedusaContainer } from "@medusajs/types" -import { OrchestrationUtils, isString } from "@medusajs/utils" +import { isString, OrchestrationUtils } from "@medusajs/utils" import { exportWorkflow } from "../../helper" import { createStep } from "./create-step" import { StepResponse } from "./helpers" @@ -95,6 +95,7 @@ export function createWorkflow< [K in keyof TResult]: | WorkflowData | WorkflowDataProperties + | TResult[K] } ): ReturnWorkflow { const name = isString(nameOrConfig) ? nameOrConfig : nameOrConfig.name