Interface ImageHost

Represents an image-based host configuration.

interface ImageHost {
    alt: string;
    src?: null | string;
    srcSet?: null | string[];
    type: "image";
}

Properties

Properties

alt: string

The alternative text for the image.

src?: null | string

The source URL of the image.

srcSet?: null | string[]

An array of source URLs for different resolutions (optional).

type: "image"

Specifies that this host type is an image.