From 9016a34ac90d633e83f2fae43145d5b0850abba9 Mon Sep 17 00:00:00 2001 From: Chris Worman <61762136+chrisworman-pela@users.noreply.github.com> Date: Fri, 17 Apr 2020 14:16:15 -0700 Subject: [PATCH] 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 --- 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 2159fe51a4..3a7d6ff1ee 100644 --- a/types/shopify-buy/index.d.ts +++ b/types/shopify-buy/index.d.ts @@ -4,6 +4,7 @@ // Stephen Traiforos // Rosana Ruiz // Juan Manuel Incaurgarat +// Chris Worman // 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.