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: @blocksuite/store

Type declaration

parent

parent: string[]

role

role: "content"

version

version: number

onUpgrade()?

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

Parameters

data: BookmarkBlockProps

previousVersion: number

latestVersion: number

Returns

void

transformer()?

optional transformer: () => @blocksuite/store

Returns

@blocksuite/store

version

version: number

Defined in

packages/affine/model/dist/blocks/bookmark/bookmark-model.d.ts:15