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