mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-05 09:04:56 +00:00
893 B
893 B
BlockSuite API Documentation / @blocksuite/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.