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