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: @blocksuite/store

Type declaration

children

children: string[]

parent

parent: string[]

role

role: "hub"

version

version: number

onUpgrade()?

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

Parameters

data: SurfaceBlockProps

previousVersion: number

latestVersion: number

Returns

void

transformer()?

optional transformer: () => SurfaceBlockTransformer

Returns

SurfaceBlockTransformer

version

version: number

Defined in

packages/affine/block-surface/dist/surface-model.d.ts:5