function fetchRichContent
fetchRichContent(url: string): Promise<RichContent | undefined>

Returns the preview of url, or a stub holding its host name when the page can't be reached. createUrlDump and updateDump use it for a new link, which has no earlier preview to keep.

Parameters

url: string

Return Type

Promise<RichContent | undefined>

Usage

import { fetchRichContent } from "api/services/rich-content-service.ts";