mirror of
https://github.com/vercel/commerce.git
synced 2025-06-07 08:46:58 +00:00
Resolves a TypeScript type error in `lib/shopify/index.ts` where the dummy data for `getCart`'s `lines.merchandise.product` did not match the `CartProduct` type. Specifically, properties like `availableForSale`, `description`, `descriptionHtml`, and `images` (array) were removed from the nested `product` objects within the dummy cart lines. The `featuredImage` property was ensured to be a single object conforming to the `Image` type. This change aligns the dummy cart data with the type definitions in `lib/shopify/types.ts`, fixing the build error: "Object literal may only specify known properties, and 'X' does not exist in type 'CartProduct'."