Fixes TypeScript errors. (#980)

This commit is contained in:
Michael Novotny
2023-04-21 12:56:16 -05:00
committed by GitHub
parent 8ff670d7d6
commit e3785d0269
2 changed files with 3 additions and 4 deletions

View File

@@ -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
}
});