BlockSuite API Documentation / @blocksuite/block-std / toGfxBlockComponent
Function: toGfxBlockComponent()
toGfxBlockComponent<
Model,Service,WidgetName,B>(CustomBlock):B& (...args) =>GfxBlockComponent
Defined in: packages/framework/block-std/src/view/element/gfx-block-component.ts:136
Type Parameters
Model
Model extends GfxBlockElementModel<GfxCompatibleProps>
Service
Service extends BlockService
WidgetName
WidgetName extends string
B
B extends typeof BlockComponent
Parameters
CustomBlock
B
Returns
B & (...args) => GfxBlockComponent