ChemPare Documentation - v0.0.0
    Preparing search index...

    Namespace shopify

    Functions

    isValidSearchResponse

    Type guard to validate if a response from the Shopify search API is a valid SearchResponse object. Checks for the presence and correct types of all required properties including pagination info, suggestions, and a valid array of item listings.

    isShopifyVariant

    Type guard to validate if an object is a valid Shopify product variant. Checks for the presence and correct types of all required variant properties including SKU, price, link, variant ID, quantity, and options.

    isItemListing

    Type guard to validate if an object is a valid Shopify item listing. Checks for the presence and correct types of all required properties including product details, pricing, and an array of valid Shopify variants.