ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...

    Namespace searchanise

    Functions - Typeguards

    isValidSearchResponse

    Type guard to validate if a response from the Searchanise 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.

    isSearchaniseVariant

    Type guard to validate if an object is a valid Searchanise 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 Searchanise item listing. Checks for the presence and correct types of all required properties including product details, pricing, and an array of valid Searchanise variants.