Skip to content

BlockSuite API Documentation / @blocksuite/block-std / toGfxBlockComponent

Function: toGfxBlockComponent()

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

Type Parameters

Model extends EdgelessBlockModel<GfxCompatibleProps>

Service extends BlockService

WidgetName extends string

B extends typeof BlockComponent

Parameters

CustomBlock: B

Returns

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

Defined in

packages/framework/block-std/src/view/element/gfx-block-component.ts:97