Media type union for product media (images and videos ONLY)
Server type: Store.Media.t
Idiomatic TypeScript discriminated union. Use .type to narrow and .value to access payload.
Use variant.mediaIndex to get the primary display media for a variant (defaults to first if not set).
Media type union for product media (images and videos ONLY) Server type: Store.Media.t
Idiomatic TypeScript discriminated union. Use
.typeto narrow and.valueto access payload. Use variant.mediaIndex to get the primary display media for a variant (defaults to first if not set).