Skip to content

BlockSuite API Documentation / @blocksuite/blocks / BookmarkBlockSchema

Variable: BookmarkBlockSchema

const BookmarkBlockSchema: object

Type declaration

model

model: object & object

Type declaration

flavour

flavour: "affine:bookmark"

props

props: PropsGetter<BookmarkBlockProps>

Type declaration

parent

parent: string[]

role

role: "content" = 'content'

version

version: number = 1

onUpgrade()?

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

Parameters

data: BookmarkBlockProps

previousVersion: number

latestVersion: number

Returns

void

transformer()?

optional transformer: () => BaseBlockTransformer<BookmarkBlockProps>

Returns

BaseBlockTransformer<BookmarkBlockProps>

version

version: number

Source

packages/blocks/src/bookmark-block/bookmark-model.ts:43