Skip to content
On this page

getSmallestThumbnailUrl ​

Definition ​

Returns the smallest thumbnail url from the media object

Signature ​

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

Parameters ​

NameTypeDescription
media
T
image object

Return type ​

ts
string | undefined
getSmallestThumbnailUrl has loaded