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