From ca6837569443b0859ada0b982efcff056f8f41ce Mon Sep 17 00:00:00 2001 From: matthew collins Date: Thu, 6 May 2021 09:33:13 -0400 Subject: [PATCH] Added options to core LineItem --- framework/commerce/types.ts | 1 + framework/shopify/types.ts | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/framework/commerce/types.ts b/framework/commerce/types.ts index 86361fd9f..afad18415 100644 --- a/framework/commerce/types.ts +++ b/framework/commerce/types.ts @@ -17,6 +17,7 @@ export type LineItem = { // A human-friendly unique string automatically generated from the product’s name path: string variant: ProductVariant + options?: any[] } export type Measurement = { diff --git a/framework/shopify/types.ts b/framework/shopify/types.ts index e7bcb2476..04c18477d 100644 --- a/framework/shopify/types.ts +++ b/framework/shopify/types.ts @@ -10,9 +10,7 @@ export type ShopifyCheckout = { export type Cart = Core.Cart & { lineItems: LineItem[] } -export interface LineItem extends Core.LineItem { - options?: any[] -} +export type LineItem = Core.LineItem /** * Cart mutations