fix: workflow return type inf missing type (#8133)
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
|||||||
WorkflowManager,
|
WorkflowManager,
|
||||||
} from "@medusajs/orchestration"
|
} from "@medusajs/orchestration"
|
||||||
import { LoadedModule, MedusaContainer } from "@medusajs/types"
|
import { LoadedModule, MedusaContainer } from "@medusajs/types"
|
||||||
import { OrchestrationUtils, isString } from "@medusajs/utils"
|
import { isString, OrchestrationUtils } from "@medusajs/utils"
|
||||||
import { exportWorkflow } from "../../helper"
|
import { exportWorkflow } from "../../helper"
|
||||||
import { createStep } from "./create-step"
|
import { createStep } from "./create-step"
|
||||||
import { StepResponse } from "./helpers"
|
import { StepResponse } from "./helpers"
|
||||||
@@ -95,6 +95,7 @@ export function createWorkflow<
|
|||||||
[K in keyof TResult]:
|
[K in keyof TResult]:
|
||||||
| WorkflowData<TResult[K]>
|
| WorkflowData<TResult[K]>
|
||||||
| WorkflowDataProperties<TResult[K]>
|
| WorkflowDataProperties<TResult[K]>
|
||||||
|
| TResult[K]
|
||||||
}
|
}
|
||||||
): ReturnWorkflow<TData, TResult, THooks> {
|
): ReturnWorkflow<TData, TResult, THooks> {
|
||||||
const name = isString(nameOrConfig) ? nameOrConfig : nameOrConfig.name
|
const name = isString(nameOrConfig) ? nameOrConfig : nameOrConfig.name
|
||||||
|
|||||||
Reference in New Issue
Block a user