mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Fixes TypeScript errors. (#980)
This commit is contained in:
@@ -256,12 +256,11 @@ export async function getCollection(handle: string): Promise<Collection | undefi
|
||||
return reshapeCollection(res.body.data.collection);
|
||||
}
|
||||
|
||||
export async function getCollectionProducts(handle: string, limit?: number): Promise<Product[]> {
|
||||
export async function getCollectionProducts(handle: string): Promise<Product[]> {
|
||||
const res = await shopifyFetch<ShopifyCollectionProductsOperation>({
|
||||
query: getCollectionProductsQuery,
|
||||
variables: {
|
||||
handle,
|
||||
first: limit
|
||||
handle
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user