Progress, Changes types, readme and restoring functionality

This commit is contained in:
Belen Curcio
2021-01-10 13:08:34 -03:00
parent ab16960ddb
commit 0d4355b431
11 changed files with 20 additions and 15 deletions

View File

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

View File

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

View File

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