Skip to content

BlockSuite API Documentation / @blocksuite/blocks / SurfaceRefBlockSchema

Variable: SurfaceRefBlockSchema

const SurfaceRefBlockSchema: object

Type declaration

model

model: object & object

Type declaration

flavour

flavour: "affine:surface-ref"

props

props: @blocksuite/store

Type declaration

parent

parent: string[]

role

role: "content"

version

version: number

onUpgrade()?

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

Parameters

data: SurfaceRefProps

previousVersion: number

latestVersion: number

Returns

void

transformer()?

optional transformer: () => @blocksuite/store

Returns

@blocksuite/store

version

version: number

Defined in

packages/affine/model/dist/blocks/surface-ref/surface-ref-model.d.ts:7