diff --git a/types/shopify-buy/index.d.ts b/types/shopify-buy/index.d.ts index 413b9614f8..7140f85515 100644 --- a/types/shopify-buy/index.d.ts +++ b/types/shopify-buy/index.d.ts @@ -2,6 +2,7 @@ // Project: http://shopify.github.io/js-buy-sdk/api/ // Definitions by: Martin Köhn // Stephen Traiforos +// Rosana Ruiz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.7 @@ -50,7 +51,6 @@ declare namespace ShopifyBuy { fetchWithProducts(id: string): Promise; // TODO fix to be a type: Docs: Fetches a single collection by ID 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 fetchQuery(query: Query): Promise; // TODO fix to be a type: DOC: Fetches a collection by handle on the shop. Assuming it does not give products } @@ -106,7 +106,7 @@ declare namespace ShopifyBuy { export interface Query { /** * query: title, collection_type, updated_at - * TODO probably will remove before Defintely Typed PR, + * TODO probably will remove before Defintely Typed PR, * as their community guidelines */ query: string; @@ -168,6 +168,11 @@ declare namespace ShopifyBuy { * The product title */ title: string; + + /** + * The product’s vendor name + */ + vendor: string; } export interface ProductVariant extends GraphModel {