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:
5
.changeset/fiery-horses-hug.md
Normal file
5
.changeset/fiery-horses-hug.md
Normal file
@@ -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>(
|
||||
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