Self Code review noticed error for optional field and missing option

This commit is contained in:
Triforce
2018-06-04 03:21:55 -04:00
parent 995470d3a5
commit f3cff60d3c
+2 -2
View File
@@ -33,7 +33,7 @@ declare namespace ShopifyBuy {
export interface ProductResource {
fetch(id: string): Promise<Product>;
fetchAll(pageSizeopt: number): Promise<Product[]>;
fetchAll(pageSizeopt?: number): Promise<Product[]>;
fetchByHandle(handle: string): Promise<Product>;
fetchMultiple(ids: string[]): Promise<Product[]>;
fetchQuery(query: Query): Promise<Product[]>;
@@ -48,7 +48,7 @@ declare namespace ShopifyBuy {
export interface CollectionResource {
fetch(id: string): Promise<Product[]>;
fetchWithProducts(id: string): Promise<any[]>; // TODO fix to be a type: Docs: Fetches a single collection by ID on the shop, not including products.
fetchAll(): Promise<any[]>; // TODO fix to be a type: Docs: Fetches all collections on the shop, not including products.
fetchAll(pageSizeopt?: number): Promise<any[]>; // TODO fix to be a type: Docs: Fetches all collections on the shop, not including products.
fetchAllWithProducts(): Promise<any[]>; // TODO fix to be a type: DOC: Fetches all collections on the shop, including products.
fetchWithProducts(id: string): Promise<any[]>; // TODO fix to be a type: DOC: Fetches all collections on the shop, including products.
fetchByHandle(handle: string): Promise<any[]>; // TODO fix to be a type: DOC: Fetches a collection by handle on the shop. Assuming it does not give products