Appearance
getMainImageUrl ​
Definition ​
gets the cover image
Signature ​
ts
export function getMainImageUrl<
T extends
| {
cover?: {
media?: {
url: string;
};
};
}
| {
media?: Array<{
media?: {
url?: string;
};
}>;
}
| {
cover?: {
url: string;
};
},
>(object: T): string
Parameters ​
Name | Type | Description |
---|---|---|
object | T | Object containing media object |
Return type ​
ts
string