ChemPal Documentation - v1.6.0
    Preparing search index...

    Interface ShopifyMediaNode

    A media node from the product's media connection. Only MediaImage nodes carry an image; other media types (video, model3d) leave it undefined.

    interface ShopifyMediaNode {
        id: string;
        mediaContentType: string;
        alt?: null | string;
        image?:
            | null
            | { url: string; width?: null
            | number; height?: null | number };
    }
    Index

    Properties

    id: string
    mediaContentType: string

    Media type discriminator, e.g. "IMAGE", "VIDEO"

    alt?: null | string

    Alt text (present on MediaImage nodes)

    image?: null | { url: string; width?: null | number; height?: null | number }

    The image payload (present on MediaImage nodes)