Skip to content

BlockSuite API Documentation / @blocksuite/blocks / NoteBlockSchema

Variable: NoteBlockSchema

const NoteBlockSchema: object

Type declaration

model

model: object & object

Type declaration

flavour

flavour: "affine:note"

props

props: PropsGetter<NoteProps>

Type declaration

children

children: string[]

parent

parent: string[]

role

role: "hub" = 'hub'

version

version: number = 1

onUpgrade()?

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

Parameters

data: NoteProps

previousVersion: number

latestVersion: number

Returns

void

transformer()?

optional transformer: () => BaseBlockTransformer<NoteProps>

Returns

BaseBlockTransformer<NoteProps>

version

version: number

Source

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