mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Changes
This commit is contained in:
@@ -16,7 +16,7 @@ export interface UseWishlistOptions {
|
||||
}
|
||||
|
||||
export interface UseWishlistInput extends UseWishlistOptions {
|
||||
customerId?: Customer['id']
|
||||
customerId?: number
|
||||
}
|
||||
|
||||
export const fetcher: HookFetcher<Wishlist | null, UseWishlistInput> = (
|
||||
|
3
framework/commerce/wishlist/index.ts
Normal file
3
framework/commerce/wishlist/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export { default as useAddItem } from './use-add-item'
|
||||
export { default as useWishlist } from './use-wishlist'
|
||||
export { default as useRemoveItem } from './use-remove-item'
|
9
framework/types.d.ts
vendored
9
framework/types.d.ts
vendored
@@ -36,11 +36,14 @@ interface Wishlist {
|
||||
interface Order {}
|
||||
|
||||
interface Customer {
|
||||
id: string
|
||||
name: string
|
||||
email: string
|
||||
id: string | number | undefined
|
||||
[prop: string]: any
|
||||
}
|
||||
|
||||
type UseCustomerResponse = {
|
||||
customer: Customer
|
||||
} | null
|
||||
|
||||
interface Category {
|
||||
id: string
|
||||
name: string
|
||||
|
Reference in New Issue
Block a user