diff --git a/types/shopify-buy/index.d.ts b/types/shopify-buy/index.d.ts index a62378e437..975b58e233 100644 --- a/types/shopify-buy/index.d.ts +++ b/types/shopify-buy/index.d.ts @@ -37,6 +37,12 @@ declare namespace ShopifyBuy { fetchByHandle(handle: string): Promise; fetchMultiple(ids: string[]): Promise; fetchQuery(query: Query): Promise; + + /* + * Product Helper Namespace + * @see {@link https://shopify.github.io/js-buy-sdk/ProductResource.html} + */ + variantForOptions(product: Product, options: Option): ProductVariant; } export interface CollectionResource { @@ -255,7 +261,7 @@ declare namespace ShopifyBuy { * an Array possible values for option. For instance if this option * is a "Size" option an example value for values could be: ["Large", "Medium", "Small"] */ - values: Array; + values: Array; } export interface OptionValue {