Skip to content

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

Function: toGfxBlockComponent()

toGfxBlockComponent<GfxRootService, Model, Service, WidgetName, B>(CustomBlock): B & (...args) => GfxBlockComponent<GfxRootService, BlockModel<object, SignaledProps<object>>, BlockService, string>

Type Parameters

GfxRootService extends BlockService

Model extends BlockModel<object, SignaledProps<object>>

Service extends BlockService

WidgetName extends string

B extends typeof BlockComponent

Parameters

CustomBlock: B

Returns

B & (...args) => GfxBlockComponent<GfxRootService, BlockModel<object, SignaledProps<object>>, BlockService, string>

Defined in

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