From c0ec54fc15fece373ac77f547706ab85eb5bc844 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Wed, 17 Dec 2025 17:56:38 +0200 Subject: [PATCH] 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 --- .changeset/fiery-horses-hug.md | 5 +++++ .../core-flows/src/common/steps/get-translated-line-items.ts | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changeset/fiery-horses-hug.md diff --git a/.changeset/fiery-horses-hug.md b/.changeset/fiery-horses-hug.md new file mode 100644 index 0000000000..a976fe1a5c --- /dev/null +++ b/.changeset/fiery-horses-hug.md @@ -0,0 +1,5 @@ +--- +"@medusajs/core-flows": patch +--- + +fix(core-flows): fix type of getTranslatedLineItemsStep diff --git a/packages/core/core-flows/src/common/steps/get-translated-line-items.ts b/packages/core/core-flows/src/common/steps/get-translated-line-items.ts index 5af542d831..14ae072eba 100644 --- a/packages/core/core-flows/src/common/steps/get-translated-line-items.ts +++ b/packages/core/core-flows/src/common/steps/get-translated-line-items.ts @@ -43,4 +43,6 @@ const step = createStep( */ export const getTranslatedLineItemsStep = ( data: GetTranslatedLineItemsStepInput -): ReturnType> => step(data) +): ReturnType> => step(data) as unknown as ReturnType< + StepFunction +>