From f2c249efa86fb7f073f02bd9ea2b2b0b96700e98 Mon Sep 17 00:00:00 2001 From: Juan Manuel Incaurgarat Date: Wed, 31 Jul 2019 19:22:33 +0200 Subject: [PATCH] Shopify-js-buy-sdk: Updated method name, to match the updated version of the library. (#37205) * Updated method name, to match the updated version of the library. The method `removeLineItem` was renamed to `removeLineItems`. See (here)[https://github.com/Shopify/js-buy-sdk/blob/master/tutorials/MIGRATION_GUIDE.md#removing-line-items]. Also updated the type for checkoutId to just 'string', as it is the only possible value. * Reverted edit in types --- types/shopify-buy/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/shopify-buy/index.d.ts b/types/shopify-buy/index.d.ts index 11f15d9dfd..37e309c1de 100644 --- a/types/shopify-buy/index.d.ts +++ b/types/shopify-buy/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: Martin Köhn // Stephen Traiforos // Rosana Ruiz +// Juan Manuel Incaurgarat // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.7 @@ -84,7 +85,7 @@ declare namespace ShopifyBuy { /** * Remove a line item from cart based on line item id */ - removeLineItem( + removeLineItems( checkoutId: string | number, lineItemIds: string[] ): Promise;