This commit is contained in:
Belen Curcio
2021-01-10 14:11:00 -03:00
parent 0d4355b431
commit 3ba60fcafc
4 changed files with 13 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ export interface UseWishlistOptions {
}
export interface UseWishlistInput extends UseWishlistOptions {
customerId?: Customer['id']
customerId?: number
}
export const fetcher: HookFetcher<Wishlist | null, UseWishlistInput> = (

View 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'

View File

@@ -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