Type guard to validate if an object is a valid Shopify product node. Checks for the presence and correct types of all required product properties and validates that all nested variant nodes are also valid.
Type guard for a Storefront API nodes(ids:) response. The nodes themselves are not checked:
a missing product is null there.
Type guard to validate if a response from the Shopify GraphQL API is a valid ShopifySearchResponse. Checks for the nested data.products.edges structure and validates all product nodes within.
Type guard to validate if an object is a valid Shopify variant node. Checks for the presence and correct types of all required variant properties including title, SKU, price, weight, and availability fields.