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
This commit is contained in:
Juan Manuel Incaurgarat 2019-07-31 19:22:33 +02:00 committed by Jesse Trinity
parent 8af4174447
commit f2c249efa8

View File

@ -3,6 +3,7 @@
// Definitions by: Martin Köhn <https://github.com/openminder>
// Stephen Traiforos <https://github.com/straiforos>
// Rosana Ruiz <https://github.com/totemika>
// Juan Manuel Incaurgarat <https://github.com/kilinkis>
// 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<Cart>;