mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Progress, Changes types, readme and restoring functionality
This commit is contained in:
@@ -21,10 +21,10 @@ export type ItemBody = {
|
||||
|
||||
export type AddItemBody = { item: ItemBody }
|
||||
|
||||
export type RemoveItemBody = { itemId: string }
|
||||
export type RemoveItemBody = { itemId: Product['id'] }
|
||||
|
||||
export type WishlistBody = {
|
||||
customer_id: number
|
||||
customer_id: Customer['id']
|
||||
is_public: number
|
||||
name: string
|
||||
items: any[]
|
||||
|
@@ -16,7 +16,7 @@ export interface UseWishlistOptions {
|
||||
}
|
||||
|
||||
export interface UseWishlistInput extends UseWishlistOptions {
|
||||
customerId?: number
|
||||
customerId?: Customer['id']
|
||||
}
|
||||
|
||||
export const fetcher: HookFetcher<Wishlist | null, UseWishlistInput> = (
|
||||
|
4
framework/types.d.ts
vendored
4
framework/types.d.ts
vendored
@@ -2,11 +2,11 @@ interface Product {
|
||||
id: string | number
|
||||
name: string
|
||||
description: string
|
||||
slug: string
|
||||
path?: string
|
||||
images: ProductImage[]
|
||||
variants: ProductVariant[]
|
||||
prices: ProductPrice[]
|
||||
slug: string
|
||||
path?: string
|
||||
}
|
||||
interface ProductImage {
|
||||
url: string
|
||||
|
Reference in New Issue
Block a user