Skip to content

BlockSuite API Documentation / @blocksuite/data-view / ConvertFunction

Type Alias: ConvertFunction()<From, To>

ConvertFunction<From, To> = (property, cells) => object

Defined in: packages/affine/data-view/src/core/property/convert.ts:7

Type Parameters

From

From extends PropertyModel = PropertyModel

To

To extends PropertyModel = PropertyModel

Parameters

property

GetPropertyDataFromConfig<From["config"]>

cells

(GetRawValueFromConfig<From["config"]> | undefined)[]

Returns

object

cells

cells: (GetRawValueFromConfig<To["config"]> | undefined)[]

property

property: GetPropertyDataFromConfig<To["config"]>