Skip to content
On this page

getBiggestThumbnailUrl ​

Definition ​

Returns the biggest thumbnail url from the media object

Signature ​

ts
export function getBiggestThumbnailUrl<
  T extends {
    thumbnails?: Array<{
      width: number;
      url: string;
    }>;
  },
>(media?: T): string | undefined 

Parameters ​

NameTypeDescription
media
T
image object

Return type ​

ts
string | undefined
getBiggestThumbnailUrl has loaded