Skip to content
On this page

getMainImageUrl

Definition

gets the cover image

Signature

ts
export function getMainImageUrl(
  object: Product | LineItem | OrderLineItem,
): string 

Parameters

NameTypeDescription
object
Product | LineItem | OrderLineItem
Object containing media object

Return type

ts
string
getMainImageUrl has loaded