Skip to content

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 ​

ParameterType
dataPageProps
previousVersionnumber
latestVersionnumber

Returns ​

void


transformer ​

optional transformer: function

Returns ​

BaseBlockTransformer< PageProps >


version ​

version: number

Defined In ​

packages/blocks/src/page-block/page-model.ts:28