Skip to content

BlockSuite API Documentation / @blocksuite/affine-model / 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>

prototype

prototype: EdgelessBlockModel<any>

Defined in

packages/affine/model/src/utils/helper.ts:12