mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
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:
parent
8af4174447
commit
f2c249efa8
3
types/shopify-buy/index.d.ts
vendored
3
types/shopify-buy/index.d.ts
vendored
@ -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>;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user