Skip to content

BlockSuite API Documentation / @blocksuite/blocks / LinkPreviewer

Class: LinkPreviewer

Constructors

new LinkPreviewer()

new LinkPreviewer(): LinkPreviewer

Returns

LinkPreviewer

Properties

query()

query: (url, signal?) => Promise<Partial<LinkPreviewData>>

Parameters

url: string

signal?: AbortSignal

Returns

Promise<Partial<LinkPreviewData>>

Defined in

packages/affine/block-embed/dist/common/link-previewer.d.ts:16


setEndpoint()

setEndpoint: (endpoint) => void

Parameters

endpoint: string

Returns

void

Defined in

packages/affine/block-embed/dist/common/link-previewer.d.ts:17