diff --git a/.changeset/chilled-dolls-chew.md b/.changeset/chilled-dolls-chew.md new file mode 100644 index 0000000000..223c4d986e --- /dev/null +++ b/.changeset/chilled-dolls-chew.md @@ -0,0 +1,5 @@ +--- +"@medusajs/types": patch +--- + +fix(types): cart item totals optional diff --git a/packages/core/types/src/http/cart/common.ts b/packages/core/types/src/http/cart/common.ts index 2f64592005..8609f24230 100644 --- a/packages/core/types/src/http/cart/common.ts +++ b/packages/core/types/src/http/cart/common.ts @@ -574,57 +574,57 @@ export interface BaseCartLineItemTotals { /** * The original total of the cart line item. */ - original_total: number + original_total?: number /** * The original subtotal of the cart line item. */ - original_subtotal: number + original_subtotal?: number /** * The original tax total of the cart line item. */ - original_tax_total: number + original_tax_total?: number /** * The item total of the cart line item. */ - item_total: number + item_total?: number /** * The item subtotal of the cart line item. */ - item_subtotal: number + item_subtotal?: number /** * The item tax total of the cart line item. */ - item_tax_total: number + item_tax_total?: number /** * The total of the cart line item. */ - total: number + total?: number /** * The subtotal of the cart line item. */ - subtotal: number + subtotal?: number /** * The tax total of the cart line item. */ - tax_total: number + tax_total?: number /** * The discount total of the cart line item. */ - discount_total: number + discount_total?: number /** * The discount tax total of the cart line item. */ - discount_tax_total: number + discount_tax_total?: number } /**