mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Progress
This commit is contained in:
@@ -15,8 +15,8 @@ import removeItem from './handlers/remove-item'
|
||||
export type { Wishlist, WishlistItem }
|
||||
|
||||
export type ItemBody = {
|
||||
productId: number
|
||||
variantId: number
|
||||
productId: Product['id']
|
||||
variantId: ProductVariant['id']
|
||||
}
|
||||
|
||||
export type AddItemBody = { item: ItemBody }
|
||||
|
4
framework/bigcommerce/wishlist/index.ts
Normal file
4
framework/bigcommerce/wishlist/index.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export { default as useAddItem } from './use-add-item'
|
||||
export { default as useWishlist } from './use-wishlist'
|
||||
export { default as useRemoveItem } from './use-remove-item'
|
||||
export { default as useWishlistActions } from './use-wishlist-actions'
|
14
framework/types.d.ts
vendored
14
framework/types.d.ts
vendored
@@ -1,17 +1,21 @@
|
||||
interface ProductImage {
|
||||
url: string
|
||||
alt?: string
|
||||
}
|
||||
|
||||
interface Product {
|
||||
id: string | number
|
||||
name: string
|
||||
description: string
|
||||
images: ProductImage[]
|
||||
variants: ProductVariant[]
|
||||
prices: ProductPrice[]
|
||||
slug: string
|
||||
path?: string
|
||||
}
|
||||
interface ProductImage {
|
||||
url: string
|
||||
alt?: string
|
||||
}
|
||||
|
||||
interface ProductVariant {
|
||||
id: string | number
|
||||
}
|
||||
|
||||
interface ProductPrice {
|
||||
value: number | string
|
||||
|
Reference in New Issue
Block a user