BlockSuite API Documentation / @blocksuite/data-view / propertyType
Function: propertyType()
propertyType<
Type
>(type
):object
Defined in: packages/affine/data-view/src/core/property/property-config.ts:50
Type Parameters
Type
Type
extends string
Parameters
type
Type
Returns
object
modelConfig()
modelConfig: <
PropertyData
,RawValue
,JsonValue
>(ops
) =>PropertyModel
<Type
,PropertyData
,RawValue
,JsonValue
>
Type Parameters
PropertyData
PropertyData
extends Record
<string
, unknown
> = Record
<string
, never
>
RawValue
RawValue
= unknown
JsonValue
JsonValue
= unknown
Parameters
ops
PropertyConfig
<PropertyData
, RawValue
, JsonValue
>
Returns
PropertyModel
<Type
, PropertyData
, RawValue
, JsonValue
>
type
type:
Type