A single product image entry: a URL plus whether it's a full-size image or a thumbnail. Full images and thumbnails are stored as separate entries rather than paired, so an unrelated thumbnail can't be mistaken for a given image's downscale.
const image: ProductImage = { href: "https://example.com/image.jpg", type: "image" };const thumb: ProductImage = { href: "https://example.com/thumbnail.jpg", type: "thumbnail" }; Copy
const image: ProductImage = { href: "https://example.com/image.jpg", type: "image" };const thumb: ProductImage = { href: "https://example.com/thumbnail.jpg", type: "thumbnail" };
The image URL.
Whether this entry is a full-size image or a thumbnail.
Optional
Alt text for accessibility (typically only set on full images).
A single product image entry: a URL plus whether it's a full-size image or a thumbnail. Full images and thumbnails are stored as separate entries rather than paired, so an unrelated thumbnail can't be mistaken for a given image's downscale.
Example