Skip to content

BlockSuite API Documentation / @blocksuite/blocks / defineEmbedModel

Function: defineEmbedModel()

defineEmbedModel<Props, T>(SuperClass): () => EdgelessBlock<Props & EdgelessSelectableProps>

Type parameters

Props extends object

T extends Constructor<BlockModel<Props>> = Constructor<BlockModel<Props>>

Parameters

SuperClass: T

Returns

Function

Returns

EdgelessBlock<Props & EdgelessSelectableProps>

prototype

prototype: EdgelessBlock<any>

Source

packages/blocks/src/_common/embed-block-helper/embed-block-model.ts:10