shopify-buy LineItem.compare_at_price can be null (#43898)

* LineItem.compare_at_price can be null, even according to the comments above the property

* Added myself to list of shopify-buy authors
This commit is contained in:
Chris Worman 2020-04-17 14:16:15 -07:00 committed by GitHub
parent 37fed5dd63
commit 9016a34ac9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@
// Stephen Traiforos <https://github.com/straiforos>
// Rosana Ruiz <https://github.com/totemika>
// Juan Manuel Incaurgarat <https://github.com/kilinkis>
// Chris Worman <https://github.com/chrisworman-pela>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.7
@ -330,7 +331,7 @@ declare namespace ShopifyBuy {
* previously before the product went on sale.
* If no compareAtPrice is set then this value will be null. An example value: "5.00".
*/
compare_at_price: string;
compare_at_price: string | null;
/**
* Variant's weight in grams. If no weight is set then 0 is returned.