Function fetchProductImage

  • Fetches the SVG product image for a given brand using a product ID or image ID.

    Returns

    A promise that resolves to the SVG image as a string.

    Parameters

    • brandId: string

      The unique identifier of the brand.

    • id: string | number

      The product ID or image ID (number or string).

    • cache: boolean = true

      If true, caches the fetched image locally. Defaults to true.

    Returns Promise<string>

Generated using TypeDoc