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