Skip to content

BlockSuite API Documentation / @blocksuite/affine-block-database / updateProperty

Function: updateProperty()

updateProperty(model, id, updater, defaultValue?): undefined | string

Defined in: packages/affine/blocks/block-database/src/utils/block-utils.ts:205

Parameters

model

DatabaseBlockModel

id

string

updater

ColumnUpdater

defaultValue?

Record<string, unknown>

Returns

undefined | string