fix(types): cart item totals optional (#13509)

Totals are not returned by default, so they should be marked as optional
This commit is contained in:
William Bouchard authored and GitHub committed 2025-09-15 13:28:34 +00:00
1 parent 040fbf3220
commit 2a29c6f82c
2 files changed
+16 -11

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/types": patch
---
fix(types): cart item totals optional
+11 -11
View File
@@ -574,57 +574,57 @@ export interface BaseCartLineItemTotals {
/** /**
* The original total of the cart line item. * The original total of the cart line item.
*/ */
original_total: number original_total?: number
/** /**
* The original subtotal of the cart line item. * The original subtotal of the cart line item.
*/ */
original_subtotal: number original_subtotal?: number
/** /**
* The original tax total of the cart line item. * 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. * The item total of the cart line item.
*/ */
item_total: number item_total?: number
/** /**
* The item subtotal of the cart line item. * The item subtotal of the cart line item.
*/ */
item_subtotal: number item_subtotal?: number
/** /**
* The item tax total of the cart line item. * The item tax total of the cart line item.
*/ */
item_tax_total: number item_tax_total?: number
/** /**
* The total of the cart line item. * The total of the cart line item.
*/ */
total: number total?: number
/** /**
* The subtotal of the cart line item. * The subtotal of the cart line item.
*/ */
subtotal: number subtotal?: number
/** /**
* The tax total of the cart line item. * The tax total of the cart line item.
*/ */
tax_total: number tax_total?: number
/** /**
* The discount total of the cart line item. * The discount total of the cart line item.
*/ */
discount_total: number discount_total?: number
/** /**
* The discount tax total of the cart line item. * The discount tax total of the cart line item.
*/ */
discount_tax_total: number discount_tax_total?: number
} }
/** /**