Skip to content

BlockSuite API Documentation / @blocksuite/blocks / defineEmbedModel

Function: defineEmbedModel()

defineEmbedModel<Props, T>(BlockModelSuperClass): () => EdgelessBlockModel<Props & GfxCompatibleProps>

Type Parameters

Props extends object

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

Parameters

BlockModelSuperClass

T

Returns

Function

Returns

EdgelessBlockModel<Props & GfxCompatibleProps>

Defined in

packages/affine/model/dist/utils/helper.d.ts:4