Appearance
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 ​
Name | Type | Description |
---|---|---|
media | T | image object |
Return type ​
ts
string | undefined