Skip to content

BlockSuite API Documentation / @blocksuite/blocks / FrameBlockSchema

Variable: FrameBlockSchema

const FrameBlockSchema: Object

Type declaration

model

model: Object & Object

Type declaration

flavour

flavour: "affine:frame"

props

props: PropsGetter<FrameBlockProps>

Type declaration

children

children: never[] = []

parent

parent: string[]

role

role: "content" = 'content'

version

version: number = 1

onUpgrade?

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

Parameters

data: FrameBlockProps

previousVersion: number

latestVersion: number

Returns

void

transformer?

optional transformer: () => BaseBlockTransformer<FrameBlockProps>

Returns

BaseBlockTransformer<FrameBlockProps>

version

version: number

Source

packages/blocks/src/frame-block/frame-model.ts:18