BlockSuite API Documentation / @blocksuite/data-view / createPropertyConvert
Function: createPropertyConvert()
createPropertyConvert<
From
,To
>(from
,to
,convert
):object
Defined in: packages/affine/data-view/src/core/property/convert.ts:17
Type Parameters
From
From
extends PropertyModel
<any
, any
, any
, any
>
To
To
extends PropertyModel
<any
, any
, any
, any
>
Parameters
from
From
to
To
convert
ConvertFunction
<From
, To
>
Returns
object
convert
convert:
ConvertFunction
<From
,To
>
from
from:
any
=from.type
to
to:
any
=to.type