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
>
role
role:
"root"
|"hub"
|"content"
Type declaration
children
children:
never
[] =[]
role
role:
"content"
='content'
version
version:
number
=1
onUpgrade?
onUpgrade?: (
data
,previousVersion
,latestVersion
) =>void
Parameters
• data: object
• previousVersion: number
• latestVersion: number
Returns
void
transformer?
transformer?: () =>
BaseBlockTransformer
<object
>
Returns
BaseBlockTransformer
<object
>
version
version:
number
Source
packages/blocks/src/divider-block/divider-model.ts:3
Generated using TypeDoc and typedoc-plugin-markdown.