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>

role

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

Type declaration

children

children: never[] = []

parent

parent: string[]

role

role: "content" = 'content'

version

version: number = 1

onUpgrade?

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

Parameters

data: FrameBlockProps

previousVersion: number

latestVersion: number

Returns

void

transformer?

transformer?: () => BaseBlockTransformer<FrameBlockProps>

Returns

BaseBlockTransformer<FrameBlockProps>

version

version: number

Source

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


Generated using TypeDoc and typedoc-plugin-markdown.