Skip to content

BlockSuite API Documentation / @blocksuite/blocks / DividerBlockSchema

Variable: DividerBlockSchema

const DividerBlockSchema: Object

Type declaration

model

model: Object & Object

Type declaration

flavour

flavour: "affine:divider"

props

props: PropsGetter<object>

Type declaration

children

children: never[] = []

role

role: "content" = 'content'

version

version: number = 1

onUpgrade?

optional onUpgrade: (data, previousVersion, latestVersion) => void

Parameters

data: object

previousVersion: number

latestVersion: number

Returns

void

transformer?

optional transformer: () => BaseBlockTransformer<object>

Returns

BaseBlockTransformer<object>

version

version: number

Source

packages/blocks/src/divider-block/divider-model.ts:3