Skip to content

API > @blocksuite/blocks > BookmarkBlockSchema

Variable: BookmarkBlockSchema ​

const BookmarkBlockSchema: object

Type declaration ​

model ​

model: {flavour: "affine:bookmark"; props: PropsGetter< BookmarkProps >; role: "root" | "hub" | "content";} & {parent: string[]; role: "content"; version: number;}

model.flavour ​

flavour: "affine:bookmark"

model.props ​

props: PropsGetter< BookmarkProps >

model.role ​

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

model.parent ​

parent: string[]

model.role ​

role: "content" = 'content'

model.version ​

version: number = 1


onUpgrade ​

optional onUpgrade: function

Parameters ​

ParameterType
dataBookmarkProps
previousVersionnumber
latestVersionnumber

Returns ​

void


transformer ​

optional transformer: function

Returns ​

BaseBlockTransformer< BookmarkProps >


version ​

version: number

Defined In ​

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