Skip to content

BlockSuite API Documentation / @blocksuite/blocks / toEdgelessEmbedBlock

Function: toEdgelessEmbedBlock()

toEdgelessEmbedBlock<Model, Service, WidgetName, B>(block): B & (...args) => GfxBlockComponent<EdgelessBlockModel<GfxCompatibleProps>, BlockService, string>

Type Parameters

Model extends EdgelessBlockModel<GfxCompatibleProps>

Service extends BlockService

WidgetName extends string

B extends typeof EmbedBlockComponent

Parameters

block: B

Returns

B & (...args) => GfxBlockComponent<EdgelessBlockModel<GfxCompatibleProps>, BlockService, string>

Defined in

packages/affine/block-embed/dist/common/to-edgeless-embed-block.d.ts:5