diff --git a/.changeset/bright-oranges-obey.md b/.changeset/bright-oranges-obey.md new file mode 100644 index 0000000000..09ea279751 --- /dev/null +++ b/.changeset/bright-oranges-obey.md @@ -0,0 +1,5 @@ +--- +"@medusajs/js-sdk": patch +--- + +fix(js-sdk): fix the return type of the `promotion.listRules` method diff --git a/packages/core/js-sdk/src/admin/promotion.ts b/packages/core/js-sdk/src/admin/promotion.ts index 5d7cc9820f..924fc93dfe 100644 --- a/packages/core/js-sdk/src/admin/promotion.ts +++ b/packages/core/js-sdk/src/admin/promotion.ts @@ -135,7 +135,7 @@ export class Promotion { headers?: ClientHeaders ) { // eslint-disable-next-line max-len - return await this.client.fetch( + return await this.client.fetch( `/admin/promotions/${id}/${ruleType}`, { headers,