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:
@blocksuite/store
Type declaration
role
role:
"root"
version
version:
number
onUpgrade()?
optional
onUpgrade: (data
,previousVersion
,latestVersion
) =>void
Parameters
• data: RootBlockProps
• previousVersion: number
• latestVersion: number
Returns
void
transformer()?
optional
transformer: () =>@blocksuite/store
Returns
version
version:
number
Defined in
packages/affine/model/dist/blocks/root/root-block-model.d.ts:9