Skip to content

BlockSuite API Documentation / @blocksuite/affine-block-surface / SurfaceBlockSchema

Variable: SurfaceBlockSchema

const SurfaceBlockSchema: object

Type declaration

model

model: object & object

Type declaration

flavour

flavour: "affine:surface"

props

props: PropsGetter<SurfaceBlockProps>

Type declaration

children

children: string[]

parent

parent: string[]

role

role: "hub" = 'hub'

version

version: number = 5

transformer()?

optional transformer: () => SurfaceBlockTransformer

Returns

SurfaceBlockTransformer

version

version: number

Defined in

packages/affine/block-surface/src/surface-model.ts:13