Variables

ProductMedia

declaration

const ProductMedia: { ~schema: { images: { alt?: string; meta?: any; sources: { focalPoint?: [number, number]; height: number; provider: string; responsive?: "static" | "mobile" | "desktop"; src: string; width: number; }; type: "image"; }; media: ({ alt?: string; meta?: any; sources: any; type: string; } | { alt?: string; meta?: any; sources: { focalPoint?: [number, number]; height: number; provider: string; responsive?: "static" | "mobile" | "desktop"; src: string; width: number; }; type: "image"; } | { alt?: string; meta?: any; sources: { height: number; length: { duration: string; }; provider: string; responsive?: "static" | "mobile" | "desktop"; src: string; width: number; }; type: "video"; }); }; }

Product media.

Contains all images, videos, 3d models and other media of a product.

Type declaration

NameTypeDescription

~schema

{ images: { alt?: string; meta?: any; sources: { focalPoint?: [number, number]; height: number; provider: string; responsive?: "static" | "mobile" | "desktop"; src: string; width: number; }; type: "image"; }; media: ({ alt?: string; meta?: any; sources: any; type: string; } | { alt?: string; meta?: any; sources: { focalPoint?: [number, number]; height: number; provider: string; responsive?: "static" | "mobile" | "desktop"; src: string; width: number; }; type: "image"; } | { alt?: string; meta?: any; sources: { height: number; length: { duration: string; }; provider: string; responsive?: "static" | "mobile" | "desktop"; src: string; width: number; }; type: "video"; }); }

~schema.images

{ alt?: string; meta?: any; sources: { focalPoint?: [number, number]; height: number; provider: string; responsive?: "static" | "mobile" | "desktop"; src: string; width: number; }; type: "image"; }

All images of a product, including the cover-image on index 0.

~schema.media

({ alt?: string; meta?: any; sources: any; type: string; } | { alt?: string; meta?: any; sources: { focalPoint?: [number, number]; height: number; provider: string; responsive?: "static" | "mobile" | "desktop"; src: string; width: number; }; type: "image"; } | { alt?: string; meta?: any; sources: { height: number; length: { duration: string; }; provider: string; responsive?: "static" | "mobile" | "desktop"; src: string; width: number; }; type: "video"; })

All media: images, videos, 3d models and other media.