Skip to content

BlockSuite API Documentation / @blocksuite/blocks / SurfaceBlockSchema

Variable: SurfaceBlockSchema ​

const SurfaceBlockSchema: Object

Type declaration ​

model ​

model: Object & Object

Type declaration ​

flavour ​

flavour: "affine:surface"

props ​

props: PropsGetter<SurfaceBlockProps>

role ​

role: "root" | "hub" | "content"

Type declaration ​

children ​

children: string[]

parent ​

parent: string[]

role ​

role: "hub" = 'hub'

version ​

version: number = 5

onUpgrade? ​

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

Parameters ​

• data: SurfaceBlockProps

• previousVersion: number

• latestVersion: number

Returns ​

void

transformer? ​

transformer?: () => SurfaceBlockTransformer

Returns ​

SurfaceBlockTransformer

version ​

version: number

Source ​

packages/blocks/src/surface-block/surface-model.ts:114


Generated using typedoc-plugin-markdown and TypeDoc