@adcp/client API Reference - v3.11.2
    Preparing search index...

    Function isGetProductsCompleted

    • Type guard to check if GetProducts response is completed. Automatically narrows response type to GetProductsResponse.

      Parameters

      Returns response is GetProductsResponse

      onGetProductsStatusChange: (response, metadata) => {
      if (isGetProductsCompleted(metadata, response)) {
      console.log(response.products); // ✅ TypeScript knows products exists
      }
      }