BlockSuite API Documentation / @blocksuite/blocks / PageBlockSchema
Variable: PageBlockSchema
const
PageBlockSchema:Object
Type declaration
model
model:
Object
&Object
Type declaration
flavour
flavour:
"affine:page"
props
props:
PropsGetter
<PageProps
>
role
role:
"root"
|"hub"
|"content"
Type declaration
role
role:
"root"
='root'
version
version:
number
=2
onUpgrade?
onUpgrade?: (
data
,previousVersion
,latestVersion
) =>void
Parameters
• data: PageProps
• previousVersion: number
• latestVersion: number
Returns
void
transformer?
transformer?: () =>
BaseBlockTransformer
<PageProps
>
Returns
BaseBlockTransformer
<PageProps
>
version
version:
number
Source
packages/blocks/src/page-block/page-model.ts:28
Generated using TypeDoc and typedoc-plugin-markdown.