mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Fixed type issue and updated to latest canary
This commit is contained in:
@@ -3,7 +3,7 @@ import { BigcommerceConfig, getConfig } from '..'
|
||||
|
||||
export type BigcommerceApiHandler<
|
||||
T = any,
|
||||
H extends BigcommerceHandlers<T> = {},
|
||||
H extends BigcommerceHandlers = {},
|
||||
Options extends {} = {}
|
||||
> = (
|
||||
req: NextApiRequest,
|
||||
|
@@ -44,10 +44,8 @@ export type Wishlist = {
|
||||
// TODO: add missing fields
|
||||
}
|
||||
|
||||
export type WishlistList = Wishlist[]
|
||||
|
||||
export type WishlistHandlers = {
|
||||
getAllWishlists: BigcommerceHandler<WishlistList, { customerId?: string }>
|
||||
getAllWishlists: BigcommerceHandler<Wishlist[], { customerId?: string }>
|
||||
getWishlist: BigcommerceHandler<Wishlist, { wishlistId?: string }>
|
||||
addWishlist: BigcommerceHandler<
|
||||
Wishlist,
|
||||
|
Reference in New Issue
Block a user