API > @blocksuite/blocks > DividerBlockSchema
Variable: DividerBlockSchema ​
const
DividerBlockSchema:object
Type declaration ​
model
​
model: {
flavour
:"affine:divider"
;props
:PropsGetter
<object
>;role
:"root"
|"hub"
|"content"
;} & {children
:never
[];role
:"content"
;version
:number
;}
model.flavour
​flavour:
"affine:divider"
model.props
​props:
PropsGetter
<object
>
model.role
​role:
"root"
|"hub"
|"content"
model.children
​children:
never
[] =[]
model.role
​role:
"content"
='content'
model.version
​version:
number
=1
onUpgrade
​
optional
onUpgrade:function
Parameters ​
Parameter | Type |
---|---|
data | object |
previousVersion | number |
latestVersion | number |
Returns ​
void
transformer
​
optional
transformer:function
Returns ​
BaseBlockTransformer
< object
>
version
​
version:
number
Defined In ​
packages/blocks/src/divider-block/divider-model.ts:3