diff --git a/types/shopify-buy/index.d.ts b/types/shopify-buy/index.d.ts index f1af570a06..413b9614f8 100644 --- a/types/shopify-buy/index.d.ts +++ b/types/shopify-buy/index.d.ts @@ -33,7 +33,7 @@ declare namespace ShopifyBuy { export interface ProductResource { fetch(id: string): Promise; - fetchAll(pageSizeopt: number): Promise; + fetchAll(pageSizeopt?: number): Promise; fetchByHandle(handle: string): Promise; fetchMultiple(ids: string[]): Promise; fetchQuery(query: Query): Promise; @@ -48,7 +48,7 @@ declare namespace ShopifyBuy { export interface CollectionResource { fetch(id: string): Promise; fetchWithProducts(id: string): Promise; // TODO fix to be a type: Docs: Fetches a single collection by ID on the shop, not including products. - fetchAll(): Promise; // TODO fix to be a type: Docs: Fetches all collections on the shop, not including products. + fetchAll(pageSizeopt?: number): Promise; // TODO fix to be a type: Docs: Fetches all collections on the shop, not including products. fetchAllWithProducts(): Promise; // TODO fix to be a type: DOC: Fetches all collections on the shop, including products. fetchWithProducts(id: string): Promise; // TODO fix to be a type: DOC: Fetches all collections on the shop, including products. fetchByHandle(handle: string): Promise; // TODO fix to be a type: DOC: Fetches a collection by handle on the shop. Assuming it does not give products