import { DaffCartItemInput } from '@daffodil/cart'
A set of fields specifying how to add a product to the cart.
interface DaffCartItemInput {
type: DaffCartItemInputType
productId: string
qty: number
}
type DaffCartItemInputType |
---|
The type of cart item that corresponds to the product being added to the cart. |
productId string |
---|
The ID of the product to add to the cart. |
qty number |
---|
How many of the product should be added to the cart. |