mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 17:51:46 +00:00
Self Code review noticed error for optional field and missing option
This commit is contained in:
Vendored
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user