fix(core-flows): fix type of getTranslatedLineItemsStep (#14338)
Fix the return type of the `getTranslatedLineItemsStep`, otherwise our reference generator can't pick up the step's typing correctly
This commit is contained in:
1 parent
07bb931254
commit
c0ec54fc15
2 files changed
+8
-1
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/core-flows": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(core-flows): fix type of getTranslatedLineItemsStep
|
||||||
@@ -43,4 +43,6 @@ const step = createStep(
|
|||||||
*/
|
*/
|
||||||
export const getTranslatedLineItemsStep = <T>(
|
export const getTranslatedLineItemsStep = <T>(
|
||||||
data: GetTranslatedLineItemsStepInput<T>
|
data: GetTranslatedLineItemsStepInput<T>
|
||||||
): ReturnType<StepFunction<any, T[]>> => step(data)
|
): ReturnType<StepFunction<any, T[]>> => step(data) as unknown as ReturnType<
|
||||||
|
StepFunction<any, T[]>
|
||||||
|
>
|
||||||
Reference in new issue
Block a user