Skip to content

BlockSuite API Documentation / @blocksuite/blocks / isLinkToNode

Function: isLinkToNode()

isLinkToNode(__namedParameters): boolean

Returns true if it is a link to block or element.

Parameters

__namedParameters

__namedParameters.pageId: string

__namedParameters.params?

__namedParameters.params.blockIds?: string[]

__namedParameters.params.databaseId?: string

__namedParameters.params.databaseRowId?: string

__namedParameters.params.elementIds?: string[]

__namedParameters.params.mode?: "edgeless" | "page"

Returns

boolean

Defined in

packages/affine/components/dist/rich-text/inline/presets/nodes/reference-node/utils.d.ts:18