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.
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.
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.