mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
914 B
914 B
BlockSuite API Documentation / @blocksuite/block-std / gfx / GfxCompatible
Function: GfxCompatible()
GfxCompatible<
Props,T>(BlockModelSuperClass): typeofGfxBlockElementModel
Convert a BlockModel to a GfxBlockElementModel.
Type Parameters
Props
Props extends GfxCompatibleProps
T
T extends Constructor<BlockModel<Props>> = Constructor<BlockModel<Props>>
Parameters
BlockModelSuperClass
T
The BlockModel class to be converted.
Returns
typeof GfxBlockElementModel
The returned class is a subclass of the GfxBlockElementModel class and the given BlockModelSuperClass.