Skip to content

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()?

optional onUpgrade: (data, previousVersion, latestVersion) => void

Parameters

data: RootBlockProps

previousVersion: number

latestVersion: number

Returns

void

transformer()?

optional transformer: () => BaseBlockTransformer<RootBlockProps>

Returns

BaseBlockTransformer<RootBlockProps>

version

version: number

Source

packages/blocks/src/root-block/root-model.ts:27