mirror of
https://github.com/vercel/commerce.git
synced 2025-03-15 06:52:32 +00:00
Updated types
This commit is contained in:
parent
5469458665
commit
4f72e371cd
@ -23,7 +23,6 @@ export interface GetAllProductPathsResult<T> {
|
||||
}
|
||||
|
||||
async function getAllProductPaths(opts?: {
|
||||
query?: string
|
||||
config?: BigcommerceConfig
|
||||
}): Promise<GetAllProductPathsResult<GetAllProductPathsQuery>>
|
||||
|
||||
|
@ -47,7 +47,6 @@ export type ProductVariables = Images &
|
||||
Omit<GetAllProductsQueryVariables, keyof ProductImageVariables>
|
||||
|
||||
async function getAllProducts(opts?: {
|
||||
query?: string
|
||||
variables?: ProductVariables
|
||||
config?: BigcommerceConfig
|
||||
}): Promise<GetAllProductsResult<GetAllProductsQuery>>
|
||||
|
@ -43,7 +43,6 @@ export type ProductVariables = Images &
|
||||
({ path: string; slug?: never } | { path?: never; slug: string })
|
||||
|
||||
async function getProduct(opts: {
|
||||
query?: string
|
||||
variables: ProductVariables
|
||||
config?: BigcommerceConfig
|
||||
}): Promise<GetProductResult<GetProductQuery>>
|
||||
|
Loading…
x
Reference in New Issue
Block a user