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?

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

Parameters

data: BookmarkBlockProps

previousVersion: number

latestVersion: number

Returns

void

transformer?

transformer?: () => BaseBlockTransformer<BookmarkBlockProps>

Returns

BaseBlockTransformer<BookmarkBlockProps>

version

version: number

Source

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


Generated using TypeDoc and typedoc-plugin-markdown.